-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.waf.yaml
46 lines (42 loc) · 1.09 KB
/
template.waf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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::Join:
- ''
- - 'arn:'
- !Ref AWS::Partition
- ':apigateway:'
- !Ref AWS::Region
- '::/restapis/'
- Fn::ImportValue: !Sub "CumulusSiteApiProxy-${DeployStage}"
- !Sub '/stages/${DeployStage}'
DashboardWebACLAssociation:
Type: 'AWS::WAFv2::WebACLAssociation'
Properties:
WebACLArn: !Ref WAFArn
ResourceArn:
Fn::Join:
- ''
- - 'arn:'
- !Ref AWS::Partition
- ':apigateway:'
- !Ref AWS::Region
- '::/restapis/'
- Fn::ImportValue: !Sub "CumulusDashboardApiProxy-${DeployStage}"
- !Sub '/stages/${DeployStage}'