Skip to content

Instantly share code, notes, and snippets.

@jarrodldavis
Created February 10, 2021 07:10
Show Gist options
  • Save jarrodldavis/cefb896649db10992c47fbb4aea8d3aa to your computer and use it in GitHub Desktop.
Save jarrodldavis/cefb896649db10992c47fbb4aea8d3aa to your computer and use it in GitHub Desktop.
AWS CLI Docker
#!/bin/bash
docker run \
--interactive \
--tty \
--rm \
--volume ~/.aws:/root/.aws \
--volume $(pwd):/aws \
--network=host \
--env "$(env | grep AWS_ | cut -f1 -d=)" \
amazon/aws-cli "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment