Skip to content

Commit

Permalink
add check for env vars and kms, fixes #682 (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-gogia committed Jun 1, 2021
1 parent 37cef51 commit 9ff6f2f
Showing 1 changed file with 7 additions and 2 deletions.
@@ -1,6 +1,11 @@
package accurics

lambdaNotEncryptedWithKms[lambda.id] {
lambda := input.aws_lambda_function[_]
not lambda.config.kms_key_arn
lambda := input.aws_lambda_function[_]

object.get(lambda.config, "environment", "undefined") != "undefined"
object.get(lambda.config.environment[_], "variables", "undefined") != "undefined"
lambda.config.environment[_].variables != {}

object.get(lambda.config, "kms_key_arn", "undefined") == "undefined"
}

0 comments on commit 9ff6f2f

Please sign in to comment.