Skip to content

Commit

Permalink
Cloudformation updates (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning authored Apr 17, 2024
1 parent eb2fff4 commit b9c757a
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 75 deletions.
30 changes: 30 additions & 0 deletions template.waf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: >-
SAM stack for Cumulus aggregator
Parameters:
DeployStage:
Type: String
AllowedValues:
- dev
- test
- regression
- prod
WAFArn:
Type: String

Resources:
SiteWebACLAssociation:
Type: 'AWS::WAFv2::WebACLAssociation'
Properties:
WebACLArn: !Ref WAFArn
ResourceArn:
Fn::ImportValue: !Sub "cumulus-aggregator-${DeployStage}-SiteAPIArn"

DashboardWebACLAssociation:
Type: 'AWS::WAFv2::WebACLAssociation'
Properties:
WebACLArn: !Ref WAFArn
ResourceArn:
Fn::ImportValue: !Sub "cumulus-aggregator-${DeployStage}-DashboardAPIArn"
Loading

0 comments on commit b9c757a

Please sign in to comment.