Data Source: aws_ssm_parameter
Provides an SSM Parameter data source.
Example Usage
To store a basic string parameter:
data "aws_ssm_parameter" "foo" { name = "foo" }
Note: The unencrypted value of a SecureString will be stored in the raw state as plain-text. Read more about sensitive data in state.
Note: The data source is currently following the behavior of the SSM API to return a string value, regardless of parameter type. For type
StringList
, we can use split() built-in function to get values in a list. Example:split(",", data.aws_ssm_parameter.subnets.value)
Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the parameter. -
with_decryption
- (Optional) Whether to return decryptedSecureString
value. Defaults totrue
.
In addition to all arguments above, the following attributes are exported:
-
arn
- The ARN of the parameter. -
name
- (Required) The name of the parameter. -
type
- (Required) The type of the parameter. Valid types areString
,StringList
andSecureString
. -
value
- (Required) The value of the parameter.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/ssm_parameter.html