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 Answer
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
answered a year 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