[Enhancement]: Support tags attribute in aws_appautoscaling_policy #28391
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/appautoscaling
Issues and PRs that pertain to the appautoscaling service.
tags
Pertains to resource tagging.
Description
The aws_appautoscaling_policy resource creates CloudWatch metric alarms on our behalf. We're able to retrieve the arns of these alarms through the alarm_arns output attribute. CloudWatch metric alarms support tagging.
Can you add the "tags" attribute to the aws_appautoscaling_policy resource so that it can pass the tags to the generated CloudWatch metric alarms? Currently I run script in our pipeline to retrieve the alarm arns and execute the AWS CLI to tag each alarm accordingly.
I've also tried setting default_tags on the AWS provider but they do not carry forward to the CloudWatch metric alarms created by the aws_appautoscaling_policy resource.
Note about tags from cloudwatch_metric_alarm documentation:
tags - (Optional) A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: