Support PropagateTags
attribute in cloudwatch_event_target
with ecs_target
ย #19948
Closed
Description
Community Note
- Please vote on this issue by adding a ๐ reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
The AWS Go SDK was updated yesterday which added supported for propagating tags to the ECS tasks launched from Cloudwatch Events:
It would be super cool to have this in terraform as well.
It could also be set by default, as "TASK_DEFINITION" is the only valid value at the moment + it's useful to have anyway.
New or Affected Resource(s)
- cloudwatch_event_target
Potential Terraform Configuration
resource "aws_cloudwatch_event_target" "ecs_scheduled_task" {
...
ecs_target {
task_count = 1
task_definition_arn = aws_ecs_task_definition.task_name.arn
propagate_tags = "TASK_DEFINITION"
}
...
}
References
Other related feature requests for cloudwatch_event_target
and ecs_target