AWS DynamoDB with Python (Boto3)— Part 1 — Intro to DynamoDB & local Installation

Accessing DynamoDB with Python

Brief about Amazon DynamoDB

Core Components

Types of Primary Key

  • Partition Key (hash attribute)
  • Partition Key & Sort Key (range attribute)

Installing DynamoDB in local

Steps

  1. Create Docker Network
> docker network create dynamo-local-network
> docker run -d -p 8000:8000 --network=dynamo-local-network --name dynamo-local amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedDb
> docker start dynamo-local
> aws dynamodb list-tables --endpoint-url http://localhost:8000

DynamoDB Workbench

--

--

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