Skip to content

Commit e57a21d

Browse files
authored
fix: Make sure tags are associated with Lambda functions (#332)
* fix: Make sure tags are associated with Lambda functions * chore: Remove redundant empty lines
1 parent 6ae1217 commit e57a21d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/lambda@edge/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ resource "aws_lambda_function" "default" {
8484
filename = each.value.source_zip != null ? data.local_file.lambda_zip[each.key].filename : data.archive_file.lambda_zip[each.key].output_path
8585
source_code_hash = each.value.source_zip != null ? sha256(data.local_file.lambda_zip[each.key].content_base64) : data.archive_file.lambda_zip[each.key].output_base64sha256
8686
publish = true
87+
tags = module.function_label[each.key].tags
8788
}
8889

8990
resource "aws_lambda_permission" "allow_cloudfront" {
@@ -93,4 +94,4 @@ resource "aws_lambda_permission" "allow_cloudfront" {
9394
statement_id = "AllowExecutionFromCloudFront"
9495
action = "lambda:GetFunction"
9596
principal = "edgelambda.amazonaws.com"
96-
}
97+
}

0 commit comments

Comments
 (0)