[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"pattern-waf-apigw-rest":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":28,"level":29,"meta":30,"patternArch":31,"resources":50,"s3URL":6,"services":57,"stem":58,"testing":59,"videoId":6,"__hash__":62},"patterns\u002Fpatterns\u002Fwaf-apigw-rest.json","AWS WAF attached to Amazon API Gateway REST API",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Feric-johnson.json",{"text":13},[14],"sam deploy","Creates an Amazon API Gateway with a WebACL attached to control access. This WebACL limits the requests to certain countries.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fwaf-apigw-rest","serverless-patterns\u002Fwaf-apigw-rest","waf-apigw-rest","template.yaml",{"headline":25,"text":26},"How it works",[27],"This sample project demonstrates how to use AWS WAF to add extra security to an Amazon API Gateway REST API. In this example, only requests from the US will be accepted. All others will be rejected with a 403. To add another country, add the country code to the 'CountryCode' array starting on line 32.","Python","300",{},{"icon1":32,"icon2":37,"icon3":40,"line1":44,"line2":48},{"x":33,"y":34,"service":35,"label":36},20,50,"waf","AWS WAF",{"x":34,"y":34,"service":38,"label":39},"apigw","Amazon API Gateway",{"x":41,"y":34,"service":42,"label":43},80,"lambda","AWS Lambda",{"from":45,"to":46,"label":47},"icon1","icon2","",{"from":46,"to":49,"label":47},"icon3",{"bullets":51},[52,54],{"text":36,"link":53},"https:\u002F\u002Faws.amazon.com\u002Fwaf\u002F",{"text":55,"link":56},"Building rules","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwaf\u002Flatest\u002Fdeveloperguide\u002Fwaf-rules.html",{"from":35,"to":38},"patterns\u002Fwaf-apigw-rest",{"text":60},[61],"See the GitHub repo for detailed testing instructions.","QNIc5_YoE5jDFsAN_vOzKMVVMQbWDK0POIZAXTZXgdo",1778846888650]