Sign inSign up

p0vidl0/aws-cli

By p0vidl0

Updated almost 6 years ago

Docker image containing AWS cli, AWS EB cli and S3cmd

Image
0

1.6K

p0vidl0/aws-cli repository overview

Docker AWS CLI

Docker image containing AWS cli, AWS EB cli, and S3cmd

What are included

  1. Alpine 3.12 base image
  2. Python 3(.8.5)
  3. AWS CLI v1
  4. AWS Elastic Beanstalk CLI v3
  5. S3cmd

Build

docker build -t p0vidl0/aws-cli .

DockerHub Badge

Configuration

There are three ways to configure AWS credentials for the container on this image.

Host environment variables
# Configure variables
export AWS_ACCESS_KEY_ID="<id>"
export AWS_SECRET_ACCESS_KEY="<key>"
export AWS_DEFAULT_REGION="<region>"

# Run container
docker run --rm -it \
	-e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" \
	-e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" \
	-e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}" \
	-v "$(pwd):/project" \
	p0vidl0/aws-cli
Container environment variables
# Configure variables
echo "AWS_ACCESS_KEY_ID=<id>" >> '.env' 
echo "AWS_SECRET_ACCESS_KEY=<key>" >> '.env' 
echo "AWS_DEFAULT_REGION=<region>" >> '.env' 

# Run container
docker run --rm -it \
	--env-file .env \
	-v "$(pwd):/project" \
	p0vidl0/aws-cli
AWS config for container
# Run container
docker run --rm -it \
	--env-file .env \
	-v "~/.aws:/root/.aws" \
	-v "$(pwd):/project" \
	p0vidl0/aws-cli

Tag summary

Content type

Image

Digest

Size

161.9 MB

Last updated

almost 6 years ago

docker pull p0vidl0/aws-cli