File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11resource "aws_lambda_function" "ami_encryption_lambda" {
2- filename = data. archive_file . ami_encryption . 0 . output_path
2+ filename = data. archive_file . ami_encryption . [ 0 ] . output_path
33 description = " Responsible for creating AMI with encrypted root volume."
44 function_name = " ${ upper (var. environment )} -AMI-ENCRYPTION-FUNCTION"
55 role = aws_iam_role. ami_encrypt_lambda . arn
66 handler = " ami_encryption.lambda_handler"
77 runtime = " python3.6"
88 timeout = 180
9- source_code_hash = data. archive_file . ami_encryption . 0 . output_base64sha256
9+ source_code_hash = data. archive_file . ami_encryption . [ 0 ] . output_base64sha256
1010
1111 environment {
1212 variables = {
@@ -21,4 +21,4 @@ resource "aws_lambda_function" "ami_encryption_lambda" {
2121 " Name" = " ${ var . environment } -AMI-ENCRYPTION-LAMBDA"
2222 },
2323 )
24- }
24+ }
You can’t perform that action at this time.
0 commit comments