Tags should be passed to SSM PutParameter #17819
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ssm
Issues and PRs that pertain to the ssm service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
The assumed role "myrole" has an ABAC policy to give access to SSM Parameter Store. Something like this:
The PutParameter API call supports passing tags in the request. The IAM PutParameter action supports passing aws:RequestTag.
If you use the CLI, this works as expected:
But if you use Terraform you get the following error...
The AWS Go SDK supports passing tags in the PutParameterInput object, yet the code doesn't do it until after the parameter is created.
Expected Behavior
Tags should be passed as part of the request to follow AWS documentation on the SSM PutParameter API request.
Actual Behavior
SSM parameter tags are passed after the parameter is created, which breaks IAM policy documentation from AWS.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: