Amazon API Gateway to AWS Lambda to Amazon DynamoDB with Go and AWS SAM

API Gateway REST API → AWS Lambda → AWS DynamoDB

Deploy a REST API connected to AWS Lambda, that puts items in Amazon DynamoDB using AWS SAM.

This pattern explains how to deploy an AWS SAM application that includes an API Gateway, AWS Lambda Function, written in Go, and writes items to 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-lambda-dynamodb-go-sam

Deploy

sam buildsam deploy --guided


Testing

See the README in the Github repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Additional resources

Created by:

Micah Walter

Micah Walter

Sr. Solutions Architect @ AWS. Serverless enthusiast.

Follow on LinkedIn