0

I understand that usually for web app containers there needs to be an HTTP endpoint which responds with 200 for a succesful healthcheck.

However, in my case I would have a non web app (a python script) running as an only container in a Fargate task. Now, how can I configure a healthcheck command in this scenario?

0

What kind of monitoring are you after? If your Python process is the only thing running in the container then if it crashes it should automatically take down the container with it.

That you can detect through CloudWatch Events and restart it, e.g. with Lambda or some other means. Check this out for details: Sending SNS Alerts for ECS Task Stopped Events.

Hope that helps :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.