Skip to content

Commit

Permalink
Add WAF association for ALB
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Jan 10, 2025
1 parent 687b454 commit be9f93f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spire/templates/shared-alb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ Resources:
Properties:
DefaultAction:
Allow: {}
Description: !Sub WAF for Spire ${EnvironmentType} shared ALB
Scope: REGIONAL
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand All @@ -453,6 +454,11 @@ Resources:
CloudWatchMetricsEnabled: false
MetricName: !Sub ${Alb.LoadBalancerName}-WAF
SampledRequestsEnabled: false
WafAssociation:
Type: AWS::WAFv2::WebACLAssociation
Properties:
ResourceArn: !Ref Alb
WebACLArn: !GetAtt Waf.Arn

Outputs:
AlbArn:
Expand Down

0 comments on commit be9f93f

Please sign in to comment.