Hi all. How do I set up a scheduled task in ECS? ...
# aws
c
Hi all. How do I set up a scheduled task in ECS? Can’t find any trace of it in the docs or via Google.
w
I think you are looking for: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/ecs/# And the
TaskDefinition
and
Service
resources specifically. For scheduled tasks, I think you then use cloudwatch (https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/cloudwatch/)
EventRule
and
EventTarget
c
Looks like you’re right! I was misled by the fact that I was setting them up manually in ECS without touching CloudWatch at all. I didn’t realise that what I was doing in ECS was being translated to CloudWatch behind the scenes. Thanks for the info!