[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-apigw-openapi-lambda-dynamodb-xray-terraform":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":29,"level":30,"meta":31,"patternArch":36,"resources":55,"s3URL":6,"services":6,"stem":66,"testing":67,"videoId":6,"__hash__":70},"patterns\u002Fpatterns\u002Fapigw-openapi-lambda-dynamodb-xray-terraform.json","Amazon API Gateway to AWS Lambda using OpenAPI",null,{"text":8},[9],"\u003Ccode>terraform -chdir=infra destroy\u003C\u002Fcode>",[11],"content\u002Fcontributors\u002Fdamodar-shenvi-wagle.json",{"text":13},[14,15],"terraform -chdir=infra init","terraform -chdir=infra apply","Create a Lambda backed REST API using OpenAPI specification, with Lambda Powertools","json","Terraform",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-openapi-lambda-dynamodb-xray-terraform","serverless-patterns\u002Fapigw-openapi-lambda-dynamodb-xray-terraform\u002Finfra","apigw-openapi-lambda-dynamodb-xray-terraform\u002Finfra","main.tf",{"headline":26,"text":27},"How it works",[28],"This Terraform application deploys a Lambda backed Amazon API Gateway REST API using OpenAPI specification. OpenAPI specification YAML is included in the project which defines CRUD endpoints and their Lambda integrations. In addition, as a best practice Lambda Powertools have been incorporated as a layer which provides a structured logging mechanism via Cloudwatch Logs and enchanced end-to-end tracing of the incoming requests via AWS X-Ray.","TypeScript","200",{"build":32},{"text":33},[34,35],"npm install","npm run build",{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":53},{"x":38,"y":39,"service":40,"label":41},20,50,"apigw","Amazon API Gateway",{"x":39,"y":39,"service":43,"label":44},"lambda","AWS Lambda",{"x":46,"y":39,"service":47,"label":48},80,"dynamodb","Amazon DynamoDB",{"from":50,"to":51,"label":52},"icon1","icon2","",{"from":51,"to":54,"label":52},"icon3",{"bullets":56},[57,60,63],{"text":58,"link":59},"Powertools for TypeScript","https:\u002F\u002Fdocs.powertools.aws.dev\u002Flambda\u002Ftypescript\u002Flatest\u002F",{"text":61,"link":62},"Integrating X-Ray SDK in Lambda using Powertools","https:\u002F\u002Fdocs.powertools.aws.dev\u002Flambda\u002Ftypescript\u002Flatest\u002Fcore\u002Ftracer\u002F",{"text":64,"link":65},"Configuring REST API using OpenAPI","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapi-gateway-import-api.html","patterns\u002Fapigw-openapi-lambda-dynamodb-xray-terraform",{"text":68},[69],"See the GitHub repo for detailed testing instructions.","x6aASfA3xcJCq860Os2wEL3JefOtWWiaAsA0ykzBUHU",1779791711342]