Skip to content

🐳 Containerized AWS CLI on alpine to avoid having to install CLI on Dev or CI/CD machines.

License

Notifications You must be signed in to change notification settings

sopeters/docker-aws-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker AWS CLI

Containerised AWS CLI to ensure consistent local development and simple CD pipelines.

Usage

Run as a command using aws as entrypoint:

docker run --rm --entrypoint aws contino/aws-cli --version

Run as a shell and mount .aws folder and current directory as volumes:

docker run --rm -it -v ~/.aws:/root/.aws -v $(pwd):/opt/app contino/aws-cli bash

Using docker-compose:

aws:
    image: contino/aws-cli
    env_file: .env
    entrypoint: aws
    working_dir: /opt/app
    volumes:
    - ~/.aws:/root/.aws
    - .:/opt/app:rw

And run docker-compose run aws --version

Build

Update the AWS_CLI_VERSION in both Makefile and DockerFile. The run:

make build

Docker Hub will automatically triger a new build.

Related Projects

About

🐳 Containerized AWS CLI on alpine to avoid having to install CLI on Dev or CI/CD machines.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 44.9%
  • Dockerfile 30.7%
  • Makefile 24.4%