Skip to content

Commit

Permalink
Disable shared WAF
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Jan 10, 2025
1 parent be9f93f commit cb79330
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions spire/templates/shared-alb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,30 +435,30 @@ Resources:
SetIdentifier: !Ref AWS::StackName
Type: A

Waf:
Type: AWS::WAFv2::WebACL
Properties:
DefaultAction:
Allow: {}
Description: !Sub WAF for Spire ${EnvironmentType} shared ALB
Scope: REGIONAL
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
- { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
- { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
- { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
- { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
- { Key: prx:ops:environment, Value: !Ref EnvironmentType }
- { Key: prx:dev:application, Value: Common }
VisibilityConfig:
CloudWatchMetricsEnabled: false
MetricName: !Sub ${Alb.LoadBalancerName}-WAF
SampledRequestsEnabled: false
WafAssociation:
Type: AWS::WAFv2::WebACLAssociation
Properties:
ResourceArn: !Ref Alb
WebACLArn: !GetAtt Waf.Arn
# Waf:
# Type: AWS::WAFv2::WebACL
# Properties:
# DefaultAction:
# Allow: {}
# Description: !Sub WAF for Spire ${EnvironmentType} shared ALB
# Scope: REGIONAL
# Tags:
# - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
# - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
# - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
# - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
# - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
# - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
# - { Key: prx:dev:application, Value: Common }
# VisibilityConfig:
# 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 cb79330

Please sign in to comment.