Amazon API Gateway REST API to Amazon DynamoDB

API Gateway → Amazon DynamoDB

Create an Amazon API Gateway REST API that integrates with an Amazon DynamoDB table.

This pattern creates an Amazon API Gateway REST API that integrates with an Amazon DynamoDB table.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-rest-api-dynamodb-cdk

Deploy

npm installcdk deploy


Testing

See the repo for detailed testing notes.

Cleanup

1. Delete the stack: npx cdk destroy.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus".
3. You see a message confirming DELETE_COMPLETE.

Created by:

Tom Harvey

Tom Harvey