Skip to main content

Wrapper for dockerized AWS CLI v2

Project description


Wrapper for dockerized AWS CLI v2. Uses amazon/aws-cli Docker image.


Install Docker.

pip install awscliv2


Container uses two volumes:

  • $HOME/.aws -> /root/.aws
  • $(cwd) -> /aws

Pull latest amazon/aws-cli image:

awsv2 --update

Configure default frofile if needed:


# --configure profile_name access_key secret_key
awsv2 --configure default ${AWS_ACCESS_KEY_ID} ${AWS_SECRET_ACCESS_KEY}
awsv2 configure set region us-west-1

Use awscli as usual:

# alias for
# docker run --rm -it -v ~/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli $@
awsv2 s3 ls

# or as a python module
python -m awscliv2 s3 ls


awscliv2 version follows PEP 440.

Latest changes

Full changelog can be found in Changelog. Release notes can be found in Releases.

Change Log

All notable changes to this project are documented on Releases page.

The format is based on Keep a Changelog and this project adheres to PEP 440.


[1.1.0] - 2020-08-29


  • -U/--update CLI argument to pull latest amazon/aws-cli image


  • -V/--version command shows underlying image version
  • region_name removed from --configure command

[1.0.0] - 2020-08-29

Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

awscliv2-1.1.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page