From 6b95de73c47116bc8555e3cf8c9172d8549b44db Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Tue, 28 Feb 2017 23:09:52 -0800 Subject: [PATCH 1/2] document how aws-sdk uses the shared credentials file from https://docs.aws.amazon.com/sdk-for-go/api/aws/credentials/\#SharedCredentialsProvider --- website/source/docs/builders/amazon.html.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/website/source/docs/builders/amazon.html.md b/website/source/docs/builders/amazon.html.md index 9d02ba2dc..51a42ed29 100644 --- a/website/source/docs/builders/amazon.html.md +++ b/website/source/docs/builders/amazon.html.md @@ -27,7 +27,7 @@ Packer supports the following builders at the moment: that device. This is an **advanced builder and should not be used by newcomers**. However, it is also the fastest way to build an EBS-backed AMI since no new EC2 instance needs to be launched. - + - [amazon-ebssurrogate](/docs/builders/amazone-ebssurrogate.html) - Create EBS -backed AMIs from scratch. Works similarly to the `chroot` builder but does not require running in AWS. This is an **advanced builder and should not be @@ -78,8 +78,11 @@ following steps: 2. Look for [local AWS configuration files](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files) - - First `~/.aws/credentials` - - Next based on `AWS_PROFILE` + - Looks for the credentials file in the `AWS_SHARED_CREDENTIALS_FILE` + environment variable, and if that's empty, use the default credentials + file (`.aws/credentials`) in the user's home directory. + - Uses the profile set in the `AWS_PROFILE` environment variable. If the + environment variable is not set, uses "default" as the profile. 3. Lookup an IAM role for the current EC2 instance (if you're running in EC2) From 131e1e385794da75b4073bb86a160b4a44912b2d Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Tue, 28 Feb 2017 23:23:36 -0800 Subject: [PATCH 2/2] clarify that it's profile name --- website/source/docs/builders/amazon.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/builders/amazon.html.md b/website/source/docs/builders/amazon.html.md index 51a42ed29..50c39b901 100644 --- a/website/source/docs/builders/amazon.html.md +++ b/website/source/docs/builders/amazon.html.md @@ -81,8 +81,8 @@ following steps: - Looks for the credentials file in the `AWS_SHARED_CREDENTIALS_FILE` environment variable, and if that's empty, use the default credentials file (`.aws/credentials`) in the user's home directory. - - Uses the profile set in the `AWS_PROFILE` environment variable. If the - environment variable is not set, uses "default" as the profile. + - Uses the profile name set in the `AWS_PROFILE` environment variable. If + the environment variable is not set, uses "default" as the profile name. 3. Lookup an IAM role for the current EC2 instance (if you're running in EC2)