Sign inSign up

opsgang/aws_env

By opsgang

•Updated almost 7 years ago

Run bash or python scripts and cmds that need awscli, credstash, curl, jq

Artifact
Image
1

50K+

opsgang/aws_env repository overview

⁠opsgang/aws_env

... mount a script file that needs awscli, credstash, curl or jq and run it, or just execute arbitrary commands with these tools.

Image comes with labels that show provenance and tool versions - use docker inspect to see.

⁠github

https://github.com/opsgang/docker_aws_env⁠

⁠installing

docker pull opsgang/aws_env:stable # or use the tag you prefer

⁠running

# run a custom script /path/to/script.sh that uses aws cli, curl, jq blah ...
docker run --rm -i -v /path/to/script.sh:/script.sh:ro opsgang/aws_env:stable /script.sh
# make my aws creds available and run /some/python/script.py
export AWS_ACCESS_KEY_ID="i'll-never-tell" # replace glibness with your access key
export AWS_SECRET_ACCESS_KEY="that's-for-me-to-know" # amend as necessary

docker run --rm -i                      \ # ... run interactive to see stdout / stderr
    -v /some/python/script.py:/my.py:ro \ # ... assume the file is executable
    --env AWS_ACCESS_KEY_ID             \ # ... will read it from your env
    --env AWS_SECRET_ACCESS_KEY         \ # ... will read it from your env
    --env AWS_DEFAULT_REGION=eu-west-2  \ # ... adjust geography to taste
    opsgang/aws_env:stable /my.py         # script will be able to access the env vars

⁠building

master branch built at shippable.com

Tag summary

Content type

Image

Digest

Size

52.6 MB

Last updated

almost 7 years ago

docker pull opsgang/aws_env:2