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 年前檢視次數 323 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南