Wait until fargate task is healthy if a healthcheck is defined
What does this MR do?
It allows waiting for the healthcheck of a container to be 'healthy' during the preparation phase of the driver, if a healthcheck is defined.
Why was this MR needed?
#34 (closed) is a good use-case for this and the reason I'm submitting this, however for more advanced scenarios it may be useful as well (e.g. there's some time-consuming initialization needed that has to be run on container startup).
What's the best way to test this MR?
Create an ECS task with a container that has a healthcheck, then run a job using this container definition. The driver will wait for the healthcheck to be 'healthy' before proceeding.