Skip to content

Commit ba21c83

Browse files
committed
fn assoc
1 parent 9af8273 commit ba21c83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

infrastructure/terraform/components/app/cloudfront_distribution_main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ resource "aws_cloudfront_distribution" "main" {
6464

6565
viewer_protocol_policy = "redirect-to-https"
6666
compress = true
67+
68+
function_association {
69+
function_arn = module.download_authorizer_lambda.arn
70+
event_type = "origin-request"
71+
}
6772
}
6873
}
6974

0 commit comments

Comments
 (0)