Amazon API Gateway direct integration with Amazon DynamoDB bulk put items

An Amazon API Gateway REST API starts and monitors a bulk put items operation that loads Amazon S3 files into Amazon DynamoDB, with no AWS Lambda function in the request path.

An Amazon API Gateway REST API with AWS Identity and Access Management (IAM) authorization calls the Amazon DynamoDB StartBulkPutItems and DescribeBulkOperation APIs directly, through an AWS service integration and mapping templates. POST /operations starts a bulk put of the data files under an Amazon S3 prefix into a table, and GET /operations/{operationId} returns the status.
A record in the input file can carry its own condition expression. DynamoDB skips a record whose condition fails and lists it in a report in the S3 bucket. No AWS Lambda function is in the request path.

< 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-dynamodb-bulk-put/typescript/cdk

Deploy

npm installnpm run buildnpx cdk bootstrapnpx cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

npx cdk destroy

Created by:

Nithin Chandran R

Nithin Chandran R

Technical Account Manager at AWS

Follow on LinkedIn