I have created WAF in my AWS account and I want to integrate that with my API gateway rest endpoint.
I found below command to integrate WAF with API gateway rest endpoint but same thing I have to do using Cloudformation template.
aws waf-regional associate-web-acl \
--web-acl-id 'aabc123a-fb4f-4fc6-becb-2b00831cadcf' \
--resource-arn 'arn:aws:apigateway:{region}::/restapis/4wk1k4onj3/stages/prod'
From AWS documentation as well I'm not able to figure out that how to attach WAF with API gateway endpoint.
