Skip to content

Commit 7cc1e8e

Browse files
fixing index key issue with lambda
1 parent af1b8c7 commit 7cc1e8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_function.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
resource "aws_lambda_function" "ami_encryption_lambda" {
2-
filename = data.archive_file.ami_encryption[0].output_path
2+
filename = data.archive_file.ami_encryption.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.output_base64sha256
1010

1111
environment {
1212
variables = {

0 commit comments

Comments
 (0)