ecs tag propagation

Photo by Ian Taylor on Unsplash

ecs tag propagation

AWS/Tags

·

1 min read

  • outline

ECS Task inherit from ECS Task Definition or ECS Service Tags for AWS resource tag management.

  • how-to (AWS Web Console)

ECS Service
"enableECSManagedTags": "True"
"propagateTags": "Task Definition"
"Tags xxxx"

  • how-to (CLI)
aws ecs describe-services --services <servicename> --cluster <clustername> --region <region> --query 'services[*].propagateTags' --output text
aws ecs describe-services --services <servicename> --cluster <clustername> --region <region> --query 'services[*].enableECSManagedTags' --output text
aws ecs update-service --service <servicename> --region <region> --cluster <clustername> --enable-ecs-managed-tags
aws ecs update-service --service <servicename> --region <region> --cluster <clustername> --propagate-tags TASK_DEFINITION|SERVICE|NONE
  • reference

https://docs.aws.amazon.com/cli/latest/reference/ecs/update-service.html
docs.aws.amazon.com/cli/latest/reference/ec..
docs.aws.amazon.com/ko_kr/AmazonECS/latest/..
aws.amazon.com/ko/premiumsupport/knowledge-..