_This issue was originally opened by @awuetz as hashicorp/terraform#17177. It was migrated here as a result of the provider split. The original body of the issue is below._
Hello hashicorp,
this is a feature request, to extend the aws ssm_parameter resource by the argument "description".
AWS is offering the possibility to add a description to the ssm parameter's. This should also be possible in terraform.
resource "aws_ssm_parameter" "secret" {
name = "${var.environment}/database/password/master"
type = "SecureString"
value = "${var.database_master_password}"
description = "This is my parameter"
}
Kind regards
Alex
I looked at it. Unfortunately, the GetParameters AWS call in the Read function here doesn't return the description.
The Description field is available in the DescribeParameters AWS call, you can use it with (cli) --filter Key=Name,Values=key_name
It'd add an additional API request though.
See https://docs.aws.amazon.com/sdk-for-go/api/service/ssm/#SSM.DescribeParameters.
@ASVincent Yea figured it :) Forgot to update here.
Hi everyone! 👋 Looks like this issue was missed when we merged some enhancements for aws_ssm_parameter into master via #1520. As of v1.11.0 of the AWS provider, the aws_ssm_parameter resource now supports allowed_pattern, description, and tags arguments, as well as updating key_id. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!