From 103a8a92233b2aa322ce9e308bcfa6a4f5d4bdae Mon Sep 17 00:00:00 2001 From: Sourabh Pawar Date: Sun, 21 Aug 2016 15:04:05 -0400 Subject: [PATCH] Note for executing the first build on Windows The first packer build command includes passing AWS access key and secret key as variables. On Windows, the single quotes must be replaced with double quotes or an AWS error occurs. This may not be obvious to everyone, hence a note. The AWS error (as below) is not adequately self-explanatory. Build 'amazon-ebs' errored: Error querying AMI: NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors --- website/source/intro/getting-started/build-image.html.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/source/intro/getting-started/build-image.html.md b/website/source/intro/getting-started/build-image.html.md index c7171363f..67e008616 100644 --- a/website/source/intro/getting-started/build-image.html.md +++ b/website/source/intro/getting-started/build-image.html.md @@ -113,6 +113,10 @@ With a properly validated template. It is time to build your first image. This is done by calling `packer build` with the template file. The output should look similar to below. Note that this process typically takes a few minutes. +-> **Note:** When using packer on Windows, replace the single-quotes in the +command below with double-quotes. + + ``` {.text} $ packer build \ -var 'aws_access_key=YOUR ACCESS KEY' \