https://pulumi.com logo
Title
c

crooked-appointment-9302

10/20/2020, 7:24 AM
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

witty-candle-66007

10/20/2020, 1:21 PM
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

crooked-appointment-9302

10/23/2020, 12:37 PM
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!