I want my lambda to run once when the ecs task becomes healthy (the essential container becomes healthy). In my lambda i need to get the essential container ip and port and send a request to it, after that i use the response to register the container app with third party application. Could you please help me in finding out how to do it, which events to use? Thanks in advance
I’ve read about task state change event, but i do no think this is a good approach, because i need the essential container application to be up and running to use the endpoint. I also know about the TASK_SET_HEALTHY event , but i am not sure that it is sent to event bridge by default, and i am not sure that i can get the needed task id from this event
Rofler is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1