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
This commit is contained in:
Sourabh Pawar 2016-08-21 15:04:05 -04:00 committed by GitHub
parent 6cd7ad82bb
commit 103a8a9223
1 changed files with 4 additions and 0 deletions

View File

@ -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 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. 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} ``` {.text}
$ packer build \ $ packer build \
-var 'aws_access_key=YOUR ACCESS KEY' \ -var 'aws_access_key=YOUR ACCESS KEY' \