I need to call some ECS service periodically.
Trying to achieve this with a scheduled ECS task.
The task definition specifies a bare alpine-curl container, that leverages the healthcheck to curl the target service:
CMD-SHELL,curl,--request PATCH,http://some-service-address,exit 0
The same curl from the EC2 instance or any container running on the instance, works just great. The curl as a healthcheck on the scheduled task doesn't get to where it should.
I can see on CloudWatch that the task itself was invoked.
Help please.