Add example for aws.aws_profile

This commit is contained in:
Alexandre Constantino 2016-01-27 13:55:41 +00:00
parent 7d0579b311
commit 66adb1c62c
1 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,13 @@ it will attempt to read credentials from environment variables first and then
from `$HOME/.aws/`. You can choose your AWS profile and files location by using
`aws.aws_profile` and `aws.aws_dir`, however environment variables will always
have precedence as defined by the [AWS documentation](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html).
To use profile `vagrantDev` from your AWS files:
```ruby
# this first line can actually be omitted
aws.aws_dir = ENV['HOME'] + "/.aws/"
aws.aws_profile = "vagrantDev"
```
## Box Format