Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
/ docker-awscli Public archive

Utility container featuring AWS cli and curl

License

Notifications You must be signed in to change notification settings

Countingup/docker-awscli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awscli

Docker Cloud Build Status Docker Image Size

Utility container built on Alpine 3.11 for interaction with AWS services.

Includes recent AWS client tools (awscli version~=1.18), to interact with the AWS platform via command line, (AWS CloudFormation helper scripts)[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-helper-scripts-reference.html], and curl with SSL support (so openssl plus ca-certificates) to allow scripting HTTP/HTTPS calls (e.g. to query metadata).

Build locally

$ cd docker-awscli
$ docker build -t countingup/awscli .

Run (will pull from dockerhub)

$ docker run -it countingup/awscli aws help
$ docker run -it countingup/awscli curl https://www.google.com

Shell scripts can be used to make these commands easily available from the host machine e.g.

$ echo 'docker run --rm countingup/awscli curl "$@"' > /usr/bin/curl && chmod +x /usr/bin/curl
$ echo 'docker run --rm countingup/awscli aws "$@"' > /usr/bin/aws && chmod +x /usr/bin/aws

S3 file operations may require bind mounting a host path as a volume in the container e.g.

$ echo 'docker run --rm -v /tmp:/tmp countingup/awscli aws "$@"' > /usr/bin/aws && chmod +x /usr/bin/aws

About

Utility container featuring AWS cli and curl

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published