This is an AWS CDK WAF IP Rate Limit Rule
This construct creating resource list.
- WAF V2 RuleGroup
npm install @gammarers/aws-waf-ip-rate-limit-rule
yarn add @gammarers/aws-waf-ip-rate-limit-rule
pip install gammarers.aws-waf-ip-rate-limit-rule
import { WAFIPRateLimitRule } from '@gammarers/aws-waf-ip-rate-limit-rule';
const ipRateLimitRule = new WAFIPRateLimitRule({
rateLimit: 100,
});
new wafv2.CfnWebACL(stack, 'WebACL', {
defaultAction: { allow: {} },
scope: 'CLOUD_FRONT',
name: 'WebAclWithCustomRules',
visibilityConfig: {
cloudWatchMetricsEnabled: true,
metricName: 'WebAclMetric',
sampledRequestsEnabled: true,
},
rules: [
ipRateLimitRule.blockRule({
priority: 1,
}),
],
});
This project is licensed under the Apache-2.0 License.