ecs tag propagation

Taegu KangTaegu Kang
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
https://docs.aws.amazon.com/cli/latest/reference/ecs/describe-services.html
https://docs.aws.amazon.com/ko_kr/AmazonECS/latest/developerguide/ecs-using-tags.html
https://aws.amazon.com/ko/premiumsupport/knowledge-center/ecs-troubleshoot-tagging-tasks/

0
Subscribe to my newsletter

Read articles from Taegu Kang directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Taegu Kang
Taegu Kang