skip to Main Content

How to create DynamoDB table using docker CMD instruction and the AWS CLI inside running container?

Hello have a simple Dockerfile which has to create the DynamoDB tables: FROM amazon/aws-cli AS seed CMD aws dynamodb --endpoint-url http://localhost:8080 create-table --table-name mytable --attribute-definitions AttributeName=user_id,AttributeType=N AttributeName=order_id,AttributeType=N --key-schema AttributeName=user_id,KeyType=HASH AttributeName=order_id,KeyType=RANGE --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 --region eu-west-2 When I'm trying to run it…

VIEW QUESTION
Back To Top
Search