Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.
/ awscli Public archive

Miminal AWS CLI Container

License

Notifications You must be signed in to change notification settings

agilebits/awscli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Miminal AWS CLI Container

This repository is used to build a small Alpine Linux-based container with Amazon Web Services command line tool.

How to configure

	mkdir ~/.aws

	docker run -it --rm -v ~/.aws:/home/aws/.aws -v ~/.ecs:/home/aws/.ecs agilebitsinc/awscli
	aws configure

How to use

The easiest way is to create an alias:

	alias aws='docker run -it --rm -v ~/.aws:/home/aws/.aws -v ~/.ecs:/home/aws/.ecs -v $PWD:/data agilebitsinc/awscli'

After that, use aws to run multiple commands within the container or `aws to run an individual command, for example:

	aws ec2 describe-regions

Building new image

export AWSCLI_VERSION=1.11.76
docker build -t agilebitsinc/awscli:$AWSCLI_VERSION .
docker push agilebitsinc/awscli:$AWSCLI_VERSION

docker build -t agilebitsinc/awscli:latest .
docker push agilebitsinc/awscli:latest

Releases

No releases published

Packages

No packages published

Languages