[{"data":1,"prerenderedAt":77},["ShallowReactive",2],{"pattern-apigw-sqs-lambda-ddb-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":32,"level":33,"meta":34,"patternArch":35,"resources":61,"s3URL":6,"services":6,"stem":72,"testing":73,"videoId":6,"__hash__":76},"patterns\u002Fpatterns\u002Fapigw-sqs-lambda-ddb-cdk.json","Amazon API Gateway to Amazon SQS to AWS Lambda to Amazon DynamoDB",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fphilippe-bosle.json",{"text":13},[14],"cdk deploy","This pattern shows how to deploy a CDK application with API Gateway, SQS, Lambda, and DynamoDB.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-sqs-lambda-ddb-cdk","serverless-patterns\u002Fapigw-sqs-lambda-ddb-cdk","apigw-sqs-lambda-ddb-cdk","apigw_sqs_lambda_ddb_cdk\u002Fapigw_sqs_lambda_ddb_cdk_stack.py",{"headline":25,"text":26},"How it works",[27,28,29,30,31],"This pattern deploys an Amazon API Gateway HTTP API with a route\u002Fsubmit configured with basic authentication.","On receiving a request, API Gateway will invoke a Lambda authorizer which validates the request and returns a policy informing API Gateway to accept or deny the request.","When the request is accepted, API Gateway sends the message payload to a queue in SQS. SQS uses another queue as a dead-letter queue to send the messages in case of continued failures to process the messages from the downstream Lambda function.","The messages from SQS are posted to a Lambda function to process them.","The Lambda function receives the messages from SQS and saves them into a DynamoDB table.","Python","300",{},{"icon1":36,"icon2":41,"icon3":45,"icon4":49,"line1":53,"line2":57,"line3":59},{"x":37,"y":38,"service":39,"label":40},15,50,"apigw","Amazon API Gateway",{"x":42,"y":38,"service":43,"label":44},40,"sqs","Amazon SQS",{"x":46,"y":38,"service":47,"label":48},60,"lambda","AWS Lambda",{"x":50,"y":38,"service":51,"label":52},85,"dynamodb","Amazon DynamoDB",{"from":54,"to":55,"label":56},"icon1","icon2","",{"from":55,"to":58,"label":56},"icon3",{"from":58,"to":60,"label":56},"icon4",{"bullets":62},[63,66,69],{"text":64,"link":65},"Lambda Authorizers","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-use-lambda-authorizer.html",{"text":67,"link":68},"Amazon SQS dead-letter queues","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-dead-letter-queues.html",{"text":70,"link":71},"Working with HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api.html","patterns\u002Fapigw-sqs-lambda-ddb-cdk",{"text":74},[75],"See the GitHub repo for detailed testing instructions.","YTifbyq4WK-l53pUyjQ3-UHjAmpOAC0gXsChEpdNO2g",1779791711692]