Running AWS DynamoDB Local with Docker-Compose

You can spin up a DynamoDB Local container within minutes to run and test your code — 100% local, offline, and free-of-charge

Thilina Ashen Gamage
Platform Engineer

--

DynamoDB is a fully managed NoSQL database provided by AWS. Since it’s a pay-as-you-go cloud resource, developers may often need to opt-out from accessing AWS every time to keep their cloud bills at a minimum during the development and testing stages. However, you may still need to run and test the code that consumes DynamoDB features via stubs / mock interfaces / some cost-effective and convenient-to-setup solution locally. Also, the daily CI/CD pipelines may want to run some parts of automated test suites very frequently without relying on the AWS resources. These are some common developer pain points when using managed cloud services like DyanamoDB.

DynamoDB Local initiative by the official AWS DynamoDB Team address many development-related concerns by providing a self-contained version of DyanamoDB for local and offline use ❤

In this quick tutorial, let’s learn how to, #1 — Setup DynamDB Local with Docker / Docker-Compose
#2 — Connect programmatically with AWS-CLI / AWS-SDK
#3 — View tables with DyanmoDB Admin Dashboard GUI
#4 —…

--

--

Thilina Ashen Gamage
Platform Engineer

Advocate of Cloud, Microservices, & Clean Code | 1.5M+ Reach | For more exciting content, stay in touch: https://medium.com/@ThilinaAshenGamage