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

Unable to install docker on Amazon linux – CentOS

I'm trying to install docker on Amazon Linux Ec2 instance, I get the following error. Installing docker Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-lamp-mariadb10.2-php7.2 amzn2extra-php7.2 docker-ce-stable 4 metadata files removed 0 sqlite files removed 0 metadata…

VIEW QUESTION

Redis – AWS – Storing .env files

A bit of background, a while back created a cfm template which allows us to deploy a new stack of our app on aws, which has a redis, db,2 security groups,cluster, target grous, ,alb, iam role, inline policies, couple of…

VIEW QUESTION

Centos – No module named yum

Environment: Aws EC2, redhat - centos While installing awscli, due to incompatibility between awscli2 and python2.6 , I had to install python 3.7. But while doing this i removed all existing python packages including default system usage onces. Now when…

VIEW QUESTION
Back To Top
Search