Wednesday, January 13, 2016

Setting Up AWS Command Line

Do this in order not to have to repeat credentials and region for every command.

aws configure

There is one "gotcha" though. Commands like ec2-start-instances won't use the saved information and you'll have to provide the credentials still. In order to use the saved information, you'll have to call the API via the "aws" command e.g.

aws ec2 start-instances --instance-ids i-xxxxx i-xxxx2 i-xxxxx3

Reference: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html

No comments:

Post a Comment