Skip to content

Commit

Permalink
Merge pull request #1678 from govuk-one-login/BAU/use-cloudfront-acl
Browse files Browse the repository at this point in the history
INCIDENT-814: use waf acl created by cloudfront stack
  • Loading branch information
whi-tw authored Jun 11, 2024
2 parents 1bf2e42 + a8f7ca3 commit ece4426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/terraform/waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ resource "aws_wafv2_web_acl" "frontend_alb_waf_regional_web_acl" {
}

action {
block {}
count {}
}

statement {
Expand Down Expand Up @@ -499,7 +499,7 @@ resource "aws_wafv2_web_acl" "frontend_alb_waf_regional_web_acl" {

resource "aws_wafv2_web_acl_association" "alb_waf_association" {
resource_arn = aws_lb.frontend_alb.arn
web_acl_arn = aws_wafv2_web_acl.frontend_alb_waf_regional_web_acl.arn
web_acl_arn = var.cloudfront_auth_dns_enabled ? aws_cloudformation_stack.cloudfront[0].outputs["CloakingOriginWebACLArn"] : aws_wafv2_web_acl.frontend_alb_waf_regional_web_acl.arn
}

resource "aws_wafv2_web_acl_logging_configuration" "frontend_alb_waf_logging_config" {
Expand Down

0 comments on commit ece4426

Please sign in to comment.