vitorfelipep / awscliv1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker AWSCLI V1

The main goal of this project is to run AWS CLI dynamodb commands with docker-compose.yml to support testing local.

Building this image

docker build -t normandesjr/awscliv1:latest .

Running multiple files

There is a pattern to follow in order to run the create-table and batch-write-item correctly and in right sequence.

The pattern for the filename is: <number>-<command>-<name>.json

The number will be used to create the order.

The command are:

  • ct stands for create-table
  • bwi stands for batch-write-item

And the name is some arbritary name.

AWS Credentials

The AWS credentials you have to use for local tests are: "local" and "local" for access and secret access key.

To configure it, fill out as shown below:

$ aws configure
AWS Access Key ID []: local
AWS Secret Access Key []: local
Default region name []: us-east-1
Default output format [None]:

Example

Take a look at example folder to see the docker-compose.yml and json files.

About


Languages

Language:Shell 82.8%Language:Dockerfile 17.2%