Skip to content

Commit

Permalink
remove list on the default behaviour function association (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinpashok authored Sep 16, 2024
1 parent 65a1e56 commit 655ae25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ module "cdn" {
origin_request_policy_id = data.aws_cloudfront_origin_request_policy.this.id
cache_policy_id = data.aws_cloudfront_cache_policy.this.id

function_association = var.create_associate_function ? [{
function_association = var.create_associate_function ? {
viewer-request = {
function_arn = aws_cloudfront_function.viewer_request[0].arn
}
}] : []
} : {}

}, var.default_cache_behavior)

Expand Down

0 comments on commit 655ae25

Please sign in to comment.