Skip to content

Commit 61640cf

Browse files
committed
fix: Correct 2nd reference
1 parent 1853c5b commit 61640cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ resource "aws_cloudfront_distribution" "this" {
439439

440440
content {
441441
event_type = f.key
442-
function_arn = lookup(f.value, "function_arn", try(aws_cloudfront_function.this[lookup(f.value, "function_name", "")].arn, null))
442+
function_arn = lookup(f.value, "function_arn", try(aws_cloudfront_function.this[f.value.function_key].arn, null))
443443
}
444444
}
445445

0 commit comments

Comments
 (0)