diff --git a/terraform/environments/tribunals/load_balancer.tf b/terraform/environments/tribunals/load_balancer.tf index 7b06634605b..1ba184d1d44 100644 --- a/terraform/environments/tribunals/load_balancer.tf +++ b/terraform/environments/tribunals/load_balancer.tf @@ -120,3 +120,8 @@ resource "aws_lb_listener_rule" "tribunals_lb_rule" { } } } + +resource "aws_wafv2_web_acl_association" "web_acl_association_my_lb" { + resource_arn = aws_lb.tribunals_lb.arn + web_acl_arn = aws_wafv2_web_acl.tribunals_web_acl.arn +} diff --git a/terraform/environments/tribunals/waf.tf b/terraform/environments/tribunals/waf.tf index fa1f8d8f78a..8a0d8447525 100644 --- a/terraform/environments/tribunals/waf.tf +++ b/terraform/environments/tribunals/waf.tf @@ -184,8 +184,3 @@ resource "aws_wafv2_web_acl" "tribunals_web_acl" { } } } - -resource "aws_wafv2_web_acl_association" "web_acl_association_my_lb" { - resource_arn = aws_lb.tribunals_lb.arn - web_acl_arn = aws_wafv2_web_acl.tribunals_web_acl.arn -} \ No newline at end of file