[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-apigw-lambda-observability":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":31,"language":35,"level":36,"meta":37,"patternArch":38,"resources":51,"s3URL":57,"services":58,"stem":59,"testing":60,"videoId":30,"__hash__":65},"patterns\u002Fpatterns\u002Fapigw-lambda-observability.json","Amazon API Gateway to AWS Lambda with observability",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\u002Fgiedrius-praspaliauskas.json",{"text":15},[16,17,18],"npm install","sam build","sam deploy --guided","Create an API with metrics, alerts, traces, logs, and dashboard.","json","AWS SAM",{"template":23,"payloads":28},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"apigw-lambda-observability","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-observability","serverless-patterns\u002Fapigw-lambda-observability","template.yaml",[29],{"headline":30,"payloadURL":30},"",{"headline":32,"text":33,"test":30},"How it works",[34],"This pattern deploys Amazon API Gateway HTTP API with a single route that is integrated with and AWS Lambda function written in Node.js. The pattern uses Amazon CloudWatch Logs, metrics, alerts, dashboards, Embedded Metrics Format, AWS X-Ray, Amazon SNS.","Node.js","100",{},{"icon1":39,"icon2":44,"line1":48},{"x":40,"y":41,"service":42,"label":43},20,50,"apigw","API Gateway",{"x":45,"y":41,"service":46,"label":47},80,"lambda","AWS Lambda",{"from":49,"to":50,"label":30},"icon1","icon2",{"headline":52,"bullets":53},"Additional resources",[54],{"text":55,"link":56},"Extended examples of this pattern implementation","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-samples\u002Ftree\u002Fmain\u002Fserverless-rest-api","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Fapigw-lambda-observability\u002Fcloudformation.yml",{"from":42,"to":46},"patterns\u002Fapigw-lambda-observability",{"headline":61,"text":62},"Testing",[63,64],"Once the CloudFormation stack is deployed, fetch its outputs either in the AWS Management Console or by using AWS CLI:","\u003Ccode>aws cloudformation describe-stacks --stack-name STACK_NAME --query \"Stacks[0].Outputs\"\u003C\u002Fcode>","kHXVcPhznbcr8mfZqSWGcC5bJAasWc9Z0tRD6ntNsEQ",1778846882313]