1 Answer
- Newest
- Most votes
- Most comments
1
Here's the magic. I wasn't setting up the "!If" within the list.
- !If
- inProduction
- Name: publicRateLimit
Action:
Block: {}
Priority: 7
Statement:
RateBasedStatement:
AggregateKeyType: IP
Limit: !Ref RateLimit
ScopeDownStatement:
NotStatement:
Statement:
ByteMatchStatement:
FieldToMatch:
UriPath: {}
PositionalConstraint: STARTS_WITH
SearchString:
'/exemptedpath'
TextTransformations:
- Priority: 0
Type: LOWERCASE
VisibilityConfig:
SampledRequestsEnabled: false
CloudWatchMetricsEnabled: false
MetricName: publicRateLimit
- !Ref AWS::NoValue
answered 4 years ago
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago