Sign inSign up

jaume/awscli

By jaume

Updated about 6 years ago

Use aws cli inside de docker

Image
0

366

jaume/awscli repository overview

Several possibilities:

The First one:

export de credentials in the host machine:

export AWS_ACCESS_KEY_ID=.......
export AWS_SECRET_ACCESS_KEY=......
export AWS_DEFAULT_REGION=us-east-2

Make an alias like this in the host machine:

alias aws='docker run --rm -t $(tty &>/dev/null && echo "-i") -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}" -v "$(pwd):/project" jaume/awscli:latest'

Finally you can execute the commands with the alias, for example:

aws help

That's all

Another is executing a bash:

docker run -ti --name aws jaume/awscli:latest bash

Tag summary

Content type

Image

Digest

Size

46.6 MB

Last updated

about 6 years ago

docker pull jaume/awscli