No, you can't install aws-cli on CoreOS.
Yes, you can run this container and call out to it.
I wanted to pull container images from my Elastic Container Registry (ECR) into my CoreOS on EC2, but in an automated way.
Run a container within CoreOS that has the aws cli tools installed, and simply mount a volume from CoreOS that contains the necessary configuration. Run commands from within that.
docker build -t aws/cli .
Make sure ~/.aws/config and ~/.aws/credentials exist in your CoreOS instance.
~/.aws/config[default]
region = us-east-1
~/.aws/credentials[default]
aws_access_key_id = AKIXXXXXXXXXXXXXXXXX
aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
docker run -it -v $HOME/.aws:/home/aws/.aws aws/cli <command> <args>
List Buckets
docker run -it -v $HOME/.aws:/home/aws/.aws aws/cli aws s3 ls
Get ECR Login
docker run -it -v $HOME/.aws:/home/aws/.aws aws/cli aws ecr get-login
Use a named profile
run -it -v $HOME/.aws:/home/aws/.aws aws/cli aws ecr get-login --profile groove
Content type
Image
Digest
Size
30.4 MB
Last updated
over 9 years ago
docker pull geezyx/awscli