Skip to content

Commit

Permalink
fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
ad869 committed Dec 1, 2020
1 parent a0ad339 commit ff97f3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
viewer_protocol_policy = "redirect-to-https"

lambda_function_association {
count = var.lambda_arn != "" ? 1 : 0
event_type = "viewer-request"
lambda_arn = var.lambda_arn
include_body = false
Expand Down

0 comments on commit ff97f3f

Please sign in to comment.