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 Resposta
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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas