Skip to content

Commit

Permalink
Merge pull request #298 from bcgov/hotfix-WR-1548
Browse files Browse the repository at this point in the history
Hotfix wr 1548
  • Loading branch information
guopeiyaopearl authored Feb 14, 2023
2 parents 4e907b1 + dd4ceff commit ce66e2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/prod/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ resource "aws_cloudfront_distribution" "workbc" {
event_type = "viewer-request"
function_arn = "arn:aws:cloudfront::846410483170:function/redirectApex2www"
}

# Associate the CloudFront distribution with the existing WAF web ACL by ARN
# This regulates users' frequent access to the website
web_acl_id = "arn:aws:wafv2:us-east-1:846410483170:global/webacl/workbc-protection/fcd24911-4d7d-4257-b05c-7988b6b16dc2"
}

ordered_cache_behavior {
Expand Down
4 changes: 4 additions & 0 deletions terraform/test/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ resource "aws_cloudfront_distribution" "workbc" {

# SimpleCORS
response_headers_policy_id = "60669652-455b-4ae9-85a4-c4c02393f86c"

# Associate the CloudFront distribution with the existing WAF web ACL by ARN
# This regulates users' frequent access to the website
web_acl_id = "arn:aws:wafv2:us-east-1:054099626264:global/webacl/workbc-test-block-constant-requests/e5d007cd-4d1f-4df9-8cb1-d5901385dfb6"
}

ordered_cache_behavior {
Expand Down

0 comments on commit ce66e2e

Please sign in to comment.