Hi I am trying to get Prefect Cloud to work with my ECS cluster. I have defined my cluster and task with cdk, and the Dockerfile I am using is:
FROM prefecthq/prefect:2-python3.11
RUN ["pip", "install", "prefect-aws"]
CMD ["prefect","worker","start","--pool","my-ecs-pool","--type","ecs"]
I can run deployments using this task but the ALB health check is failing.
I then ran the docker container locally and tried to test the health check with
curl -f <http://localhost/>
and got an error
Failed to connect to localhost port 80 after 0 ms: Couldn't connect to server
.
How can I get the health check to pass?