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?

已提问 2 年前322 查看次数
1 回答
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则