[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-waf-appsync-cdk":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":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":58,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fwaf-appsync-cdk.json","AWS WAF ACL attached to Amazon AppSync GraphQL API",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fharun-hasdal.json",{"text":13},[14],"cdk deploy --all","Create an AppSync graphql API protected with WAF rules. This WebACL limits the requests to certain countries and protects against common graphql attacks.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fwaf-appsync-cdk","serverless-patterns\u002Fwaf-appsync-cdk","waf-appsync-cdk","cdk.ts",{"headline":25,"text":26},"How it works",[27,28],"This sample project demonstrates how to protect an AppSync Graphql API against attacks using WAF (Web Application Firewall) rules.","This pattern deploys a graphql API with DynamoDB resolvers, and a WAF web ACL with rules for protecting GraphQL APIs.","TypeScript","300",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},30,50,"waf","AWS WAF",{"x":39,"y":35,"service":40,"label":41},70,"appsync","AWS AppSync",{"from":43,"to":44,"label":45},"icon1","icon2","WAF Rules",{"bullets":47},[48,51,53,56],{"text":49,"link":50},"Using AWS WAF to protect your APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fappsync\u002Flatest\u002Fdevguide\u002FWAF-Integration.html",{"text":37,"link":52},"https:\u002F\u002Faws.amazon.com\u002Fwaf\u002F",{"text":54,"link":55},"Building WAF rules","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwaf\u002Flatest\u002Fdeveloperguide\u002Fwaf-rules.html",{"text":41,"link":57},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fappsync\u002Flatest\u002Fdevguide\u002Fwhat-is-appsync.html",{"from":36,"to":40},"patterns\u002Fwaf-appsync-cdk",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","gDBpa3uHh1_XRdkz93x8n42YBaXA5zXtaMdEIOIEWxM",1778846888655]