How to set up DynamoDB locally

I am a french Developer, working for a french startup :) i like video games, computers and drinking Ricoré
Search for a command to run...

I am a french Developer, working for a french startup :) i like video games, computers and drinking Ricoré
No comments yet. Be the first to comment.
AWS Bedrock AgentCore lets you deploy agents as managed containerized runtimes. This guide shows how to automate this deployment using Pulumi and Docker. What You'll Deploy Docker container with your agent code Amazon ECR to store the image Bedroc...

Introduction This guide shows how to deploy AWS Bedrock Agents using Pulumi and TypeScript. Prerequisites AWS Account with Bedrock access Node.js and npm installed Pulumi CLI installed Project Setup Generate Project with Pulumi pulumi new aws-t...

Starting My Homelab Journey with a Raspberry Pi 4B

I recently discovered Docker compose profiles and wanted to share it as it can be useful to someone else. Docker Compose profiles let you control which services run without modifying your docker-compose.yml. They’re useful for separating optional s...

These days, i’m using AWS Bedrock to create Agents.And i faced this error when testing my agents many times so i decided to write down the workaround that i found. An error occurred (dependencyFailedException) when calling the InvokeAgent operation: ...

Do you know that can use the local version of Amazon DynamoDB to develop and test applications without having to access the DynamoDB web service?
This local version helps you save on throughput, data storage, and data transfer fees. Moreover, it enables you to test your applications without having to worry about internet connectivity.
As a developer, you can use the local version of DynamoDB to simulate real-world scenarios and test the limits of your application. You can also use it to debug and troubleshoot issues in a controlled environment. By using the local version, you can speed up your development process and reduce your overall development costs.
A local version of Amazon DynamoDB is available as a Docker image.
For more information, see dynamodb-local.
To install and run DynamoDB locally with Docker compose (Docker must be installed):
Copy the following code to a file and save it as docker-compose.yml.
version: '3.8'
services:
dynamodb-local:
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"
image: "amazon/dynamodb-local:latest"
container_name: dynamodb-local
ports:
- "8000:8000"
volumes:
- "./docker/dynamodb:/home/dynamodblocal/data"
working_dir: /home/dynamodblocal
Run the following command:
docker-compose up
Your local DynamoDB is ready to be used.
You can use the AWS CLI to interact with your local DB using the --endpoint-url parameter
aws dynamodb list-tables --endpoint-url http://localhost:8000
You can also use dynamodb-admin to have a GUI to interact with your local database
https://www.npmjs.com/package/dynamodb-admin
That's it!
Don't hesitate to comment if you have any questions.
See you in the next one! 🤖🤖🤖