packer-cn/template/interpolate
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
..
aws/secretsmanager integration/secretsmanager: Add support for AWS SharedConfig file (#9781) 2020-08-18 10:51:48 -04:00
funcs.go integration/secretsmanager: Add support for AWS SharedConfig file (#9781) 2020-08-18 10:51:48 -04:00
funcs_test.go execute_command in powershell wasn't interpolating build vars properly (#8771) 2020-03-02 04:20:32 -05:00
i.go Add golangci-lint to project (#8686) 2020-02-14 11:42:29 -05:00
i_test.go template/interpolate: basic + some funcs 2015-05-15 21:05:47 -07:00
parse.go template/interpolate: basic + some funcs 2015-05-15 21:05:47 -07:00
parse_test.go run gofmt 2016-11-01 14:08:04 -07:00
render.go Render variables one time on prepare method (#8727) 2020-02-13 17:35:23 +01:00
render_test.go update consul and vault dependencies (#9205) 2020-05-11 15:26:01 -04:00