What should be use list down deployed application on ECS

0

My sprint boot application will get deployed on AWS ECS, before that I need to keep few api ready using ECS client. What should be use if need to list down the all deployed applications on ECS. I am quite confuse between listTaskDefinition, listTask or listservices. Has anyone used ECSClient api already? Please provide guidance over here. Also the response of these methods has taskArns(), seems it will be name of deployed resources?

1 réponse
0

You want to use the ListServices() API which will list all the services in your cluster. From the service, you can find the tasks running for it. You can also go with ListTasks() which will list all the tasks in the cluster, then you can work your way back to the service it belongs to.

I use boto3/python though, not Java, but the arguments to the API should be the same.

profile picture
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions