Skip to content

Commit 0338ed1

Browse files
committed
Docs for WAFv2
1 parent 0d47d6c commit 0338ed1

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

docs/examples/iam-policy.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@
114114
],
115115
"Resource": "*"
116116
},
117+
{
118+
"Effect": "Allow",
119+
"Action": [
120+
"wafv2:GetWebACL",
121+
"wafv2:GetWebACLForResource",
122+
"wafv2:AssociateWebACL",
123+
"wafv2:DisassociateWebACL"
124+
],
125+
"Resource": "*"
126+
},
117127
{
118128
"Effect": "Allow",
119129
"Action": [

docs/guide/ingress/annotation.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ You can add kubernetes annotations to ingress and service objects to customize t
4747
|[alb.ingress.kubernetes.io/target-type](#target-type)|instance \| ip|instance|ingress,service|
4848
|[alb.ingress.kubernetes.io/unhealthy-threshold-count](#unhealthy-threshold-count)|integer|'2'|ingress,service|
4949
|[alb.ingress.kubernetes.io/waf-acl-id](#waf-acl-id)|string|N/A|ingress|
50+
|[alb.ingress.kubernetes.io/wafv2-acl-arn](#wafv2-acl-arn)|string|N/A|ingress|
5051

5152
## Traffic Listening
5253
Traffic Listening can be controlled with following annotations:
@@ -497,6 +498,22 @@ Health check on target groups can be controlled with following annotations:
497498
```alb.ingress.kubernetes.io/waf-acl-id: 499e8b99-6671-4614-a86d-adb1810b7fbe
498499
```
499500

501+
## WAFv2
502+
- <a name="wafv2-acl-arn">`alb.ingress.kubernetes.io/wafv2-acl-arn`</a> specifies ARN for the Amazon WAFv2 web ACL.
503+
504+
!!!warning ""
505+
Only Regional WAF is supported.
506+
507+
!!!example
508+
```alb.ingress.kubernetes.io/wafv2-acl-arn: arn:aws:wafv2:us-west-2:xxxxx:regional/webacl/xxxxxxx/3ab78708-85b0-49d3-b4e1-7a9615a6613b
509+
```
510+
511+
!!!tip ""
512+
To get the WAFv2 Web ACL ARN from the Console, click the gear icon in the upper right and enable the ARN column.
513+
514+
!!!warning ""
515+
To detach a WAFv2 Web ACL from an ALB, set the annotation to `""`.
516+
500517
## Shield Advanced
501518
- <a name="shield-advanced-protection">`alb.ingress.kubernetes.io/shield-advanced-protection`</a> turns on / off the AWS Shield Advanced protection for the load balancer.
502519

0 commit comments

Comments
 (0)