The AWS Command Line Interface (AWS CLI) provides an easy-to-use command line interface to AWS and allows you to create powerful automation scripts. In this session, you learn advanced techniques that open up new scenarios for using the AWS CLI. We demonstrate how to filter and transform service responses and how to chain and script commands, and we explore new features in the AWS CLI.
20. aws configure <subcommand>
list - list common configuration sources
get - get the value of a single config var
set - set the value of a single config var
29. aws configure set profile.prod.aws_secret_access_key bar
~/.aws/credentials ~/.aws/config
[prod]
aws_access_key_id = foo
30. aws configure set profile.prod.aws_secret_access_key bar
~/.aws/credentials ~/.aws/config
[prod]
aws_access_key_id = foo
aws_secret_access_key = bar
31. aws configure set profile.prod.region uswest2
~/.aws/credentials ~/.aws/config
[prod]
aws_access_key_id = foo
aws_secret_access_key = bar
32. aws configure set profile.prod.region uswest2
~/.aws/credentials ~/.aws/config
[prod]
aws_access_key_id = foo
aws_secret_access_key = bar
[profile prod]
region = us-west-2
33. aws configure set profile.prod.output text
~/.aws/credentials ~/.aws/config
[prod]
aws_access_key_id = foo
aws_secret_access_key = bar
[profile prod]
region = us-west-2
34. aws configure set profile.prod.output text
~/.aws/credentials ~/.aws/config
[prod]
aws_access_key_id = foo
aws_secret_access_key = bar
[profile prod]
region = us-west-2
output = text
104. For More Information
• https://github.com/aws/aws-cli
• http://docs.aws.amazon.com/cli/latest/userguide/
• https://forums.aws.amazon.com/forum.jspa?forumID=150
• http://docs.aws.amazon.com/cli/latest/reference/
• http://jmespath.org/
105. Your Feedback is Important to AWS
Please complete the session evaluation. Tell us what you think!