1.2.0 Postgres and DynamoDB
0. Learning Materials
Andrew's repo: week-1-add-postgres-dynamodb
My branch repo: 01-02-dynamodb-postgres
My commits
Task List
1. Workflow
1.1 Build containers
Add the following docker container configurations for:
dynamodb-local
db
(postgresql)
docker-compose.yml
Then run docker-compose
.
docker compose -f 'docker-compose.yml' up -d --build
1.2 Test the database
In case you don't have aws-cli
or postgres
installed in your local machine, see discussion.
Now that the DynamoDB container is running locally, create a table.
Command Source code @ 100DaysOfCloud
Once the table is created, populate the db with some data.
Test the connection from our local machine to the locally running Postgres database.
You can also connect to the postgres db with the command line:
psql -Upostgres --host localhost
2. Discussion
2.1 Install DynamoDB and PostgreSQL
DynamoDB
PostgreSQL
Last updated