How to run API Gateway, AWS Lambda and DynamoDB locally

Ever felt the urge to do cloud development while on a boat or a train? Guess what, you can!

Photo by Kenny Timmer on Unsplash

Architecture

Docker Container architecture

Environment Setup

Create Docker Network

DynamoDB Local Setup

docker run -d -p 8000:8000 --network=local-api-network --name dynamo-local amazon/dynamodb-local
aws dynamodb list-tables --endpoint-url http://localhost:8000

Create table and data with NoSQL Workbench

Create a DynamoDB Local connection in NoSQL Workbench

Setup local credentials

Run the API using SAM

sam local start-api --docker-network local-api-network

Summary

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store