Skip to content

Support PropagateTags attribute in cloudwatch_event_target with ecs_targetย #19948

Closed
@dimisjim

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:

https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_EcsParameters.html#eventbridge-Type-EcsParameters-PropagateTags

aws/aws-sdk-go#3974

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

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions