Skip to content

jclinux/docker-awscli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

AWS Command Line Interface

Environment Variable

  • AWS_ACCESS_KEY - The IAM access key to use when interacting with AWS.
  • AWS_SECRET_ACCESS_KEY - Secret that corresponds to the access key.
  • AWS_DEFAULT_REGION - AWS region to use for interactions. Defaults to the region of the current machine.

Associate Elastic IP

This example command associates an EIP with the current instance.

docker run --rm \
  -e AWS_ACCESS_KEY_ID="my-access-key" \
  -e AWS_SECRET_ACCESS_KEY="my-secret-key" \
  meltwater/awscli ec2 associate-address \
  --instance-id "`curl -sL http://169.254.169.254/2014-11-05/meta-data/instance-id`" \
  --allocation-id "eip-1234abcd"

About

Docker image of Amazon AWS Command Line Interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%