Search by TAG for list of services (ECS)

0

I have an ECS deployment where I need to re-deploy the services based on some configuration server (env from S3). The task definition or image does not change, so I am planning on using a lambda to list the containers that need to restart/redeploy and use aws cli for the same.

To list all the services that need to be re-started I maintain a manual dependency list. I am thinking of automating this with tags. Is it possible to list all services based on tag (say I need to re-start all services that has tag db-service when some db related env change (in S3) happens). Since search by tag is possible is there some way to do a get-by-tag.

The only way I saw is to describe all the resources and use the tags to narrow down for the necessary task. Is there a more efficient way? Or a better way for the use-case.

2 Answers
0
AWS
vandyro
answered 4 months ago
0

Besides using Tag Editor to search for resources based on tag, there is also the option to use AWS Resource Explorer to search for tags. However, I believe what you want is to automate that deployment. For that you can use AWS Systems Manager to remotely manage ECS instances.. You can also leverage deploying via tag with CodePipeline.

profile pictureAWS
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions