packer-cn/template
Wilken Rivera 20eeffee0d
integration/secretsmanager: Add support for AWS SharedConfig file (#9781)
This changes updates the AWS Secrets manager session authentication
logic to support reading the AWS configuration file for default
credentials and region settings, if they are not provided via
environment variables.

* Modify error output a little to remove stutter "error ... : error ...`

Results before change
```
unset AWS_REGION
⇶  ~/pkg/packer build amazon-ebs_secretsmanager_shell-local.json
template: root:1:3: executing "root" at <aws_secretsmanager `packer/test/keys`
`shell`>: error calling aws_secretsmanager: Error getting secret: MissingRegion:
could not find region configuration
```

Results after change
```
unset AWS_REGION
⇶  ~/pkg/packer build amazon-ebs_secretsmanager_shell-local.json
null: output will be in this color.

==> null: Running local shell script: /tmp/packer-shell721444992
    null: powershell
Build 'null' finished after 4 milliseconds 121 microseconds.

==> Wait completed after 4 milliseconds 192 microseconds

==> Builds finished. The artifacts of successful builds are:
```
2020-08-18 10:51:48 -04:00
..
interpolate integration/secretsmanager: Add support for AWS SharedConfig file (#9781) 2020-08-18 10:51:48 -04:00
test-fixtures Add RetriedProvisioner to allow retry provisioners (#9061) 2020-04-16 11:58:54 +02:00
parse.go Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
parse_test.go Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
template.go Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
template.hcl2spec.go Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
template_test.go allow to set provisioner timeout from buildfile 2019-04-08 20:09:21 +02:00