Image containing the AWS Cli executable.
The image is ready to execute AWS Cli commands like:
docker run cnservices/aws-cli <COMMAND>
You can use environment the variables to authenticate the AWS Cli.
docker run --env AWS_ACCESS_KEY_ID=<YOUR_ACCESS_KEY> --env AWS_SECRET_ACCESS_KEY=<YOUR_SECRET_KEY> cnservices/aws-cli <COMMAND>
Where:
- AWS_ACCESS_KEY_ID: Specifies an AWS access key associated with an IAM user or role.
- AWS_SECRET_ACCESS_KEY: Specifies the secret key associated with the access key. This is essentially the "password" for the access key.
You can use your AWS profiles to authenticate the AWS Cli.
docker run --volume ~/.aws/:/root/.aws/ cnservices/aws-cli <COMMAND>
To access the container you need to override the entry point:
docker run -ti --entrypoint sh cnservices/aws-cli