@hashicorp
The Amazon plugin can be used with HashiCorp Packer to create custom images on AWS.
- Official
- HCP Ready
Updated 4 months ago
- GitHub(opens in new tab)
Parameter Store
The Parameter Store data source provides information about a parameter in SSM.
Note: Data sources is a feature exclusively available to HCL2 templates.
Basic examples of usage:
Configuration Reference
Required
name
(string) - The name of the parameter you want to query.
Optional
with_decryption
(bool) - Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types.
Output Data
value
(string) - The parameter value.version
(string) - The parameter version.arn
(string) - The Amazon Resource Name (ARN) of the parameter.
Authentication
The Amazon Data Sources authentication works just like for the Amazon Builders. Both have the same authentication options, and you can refer to the Amazon Builders authentication to learn the options to authenticate for data sources.
Note: A data source will start and execute in your own authentication session. The authentication in the data source doesn't relate with the authentication on Amazon Builders.
Basic example of an Amazon data source authentication using assume_role
: