[{"data":1,"prerenderedAt":72},["ShallowReactive",2],{"pattern-amplify-apigw-lambda":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":30,"level":31,"meta":32,"patternArch":33,"resources":53,"s3URL":65,"services":6,"stem":66,"testing":67,"videoId":6,"__hash__":71},"patterns\u002Fpatterns\u002Famplify-apigw-lambda.json","AWS Amplify to Amazon API Gateway with Amazon Cognito",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fadilson-perinei.json",{"text":15},[16],"sam deploy --guided","Create an Amplify frontend that calls Amazon API Gateway using Cognito","json","AWS SAM",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"amplify_cognito_apigateway_lambda_envvariables","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Famplify_cognito_apigateway_lambda_envvariables","serverless-patterns\u002Famplify_cognito_apigateway_lambda_envvariables","template.yaml",{"headline":27,"text":28},"How it works",[29],"This pattern explains how to deploy an AWS SAM application that includes an AWS Amplify frontend, Cognito, API Gateway and Lambda Function. It also sets environmental variables to be used by Amplify and Lambda Function.","Node.js","100",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":50},{"x":35,"y":36,"service":37,"label":38},20,50,"amplify","AWS Amplify",{"x":36,"y":36,"service":40,"label":41},"apigw","API Gateway",{"x":43,"y":36,"service":44,"label":45},80,"lambda","AWS Lambda",{"from":47,"to":48,"label":49},"icon1","icon2","Cognito",{"from":48,"to":51,"label":52},"icon3","",{"headline":54,"bullets":55},"Additional resources",[56,59,62],{"text":57,"link":58},"Working with HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api.html",{"text":60,"link":61},"Working with AWS Lambda proxy integrations for HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api-develop-integrations-lambda.html",{"text":63,"link":64},"Lambda Function Handler","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Fserverless-architectures-lambda\u002Fthe-handler.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Famplify-apigw-lambda\u002Fcloudformation.yml","patterns\u002Famplify-apigw-lambda",{"headline":68,"text":69},"Testing",[70],"See the repo for detailed testing notes.","crUWv2mIOE6N3azudYmH-jtX9u1aOZ0v21JtyBzrLyI",1780050904040]