[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-cloudfront-apigw-rest-api-lambda-dynamodb-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":30,"level":31,"meta":32,"patternArch":33,"resources":59,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fcloudfront-apigw-rest-api-lambda-dynamodb-sam.json","Amazon CloudFront to Amazon API Gateway REST API to AWS Lambda to Amazon DynamoDB",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fjohn-dwyer.json",{"text":13},[14,15],"sam deploy","sh deploy_frontend.sh","CloudFront distribution in front of S3 and API Gateway REST API, invoking a Lambda function to store data in DynamoDB.","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudfront-apigw-rest-api-lambda-dynamodb-sam","serverless-patterns\u002Fcloudfront-apigw-rest-api-lambda-dynamodb-sam","cloudfront-apigw-rest-api-lambda-dynamodb-sam","template.yaml",{"headline":26,"text":27},"How it works",[28,29],"This sample project creates a simple webform application using Amazon Cloudfront in front of Amazon S3 and Amazon API Gateway REST API.  The Amazon API Gateway REST API invokes an AWS Lambda function which stores the webform data in an Amazon DynamoDB table.","This pattern uses AWS WAF to secure the CloudFront distribution and AWS Secrets Manager to store a validation string to validate API requests flow through Amazon Cloudfront.  AWS X-Ray is also enabled to allow for distributed tracing.","Node.js","300",{},{"icon1":34,"icon2":39,"icon3":43,"icon4":47,"line1":51,"line2":55,"line3":57},{"x":35,"y":36,"service":37,"label":38},20,50,"cloudfront","Amazon CloudFront",{"x":40,"y":36,"service":41,"label":42},40,"apigw","Amazon API Gateway",{"x":44,"y":36,"service":45,"label":46},60,"lambda","AWS Lambda",{"x":48,"y":36,"service":49,"label":50},80,"dynamodb","DynamoDB",{"from":52,"to":53,"label":54},"icon1","icon2","",{"from":53,"to":56,"label":54},"icon3",{"from":56,"to":58,"label":54},"icon4",{"bullets":60},[61],{"text":62,"link":63},"Amazon API Gateway Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-rest-api.html","patterns\u002Fcloudfront-apigw-rest-api-lambda-dynamodb-sam",{"text":66},[67],"See the GitHub repo for detailed testing instructions.","JQan58k7VjBFJtA76MmsdQVROIiLg2sj3w63mkGpy8c",1778927706726]