awslabs / fargatecli

CLI for AWS Fargate
Apache License 2.0
893 stars 114 forks source link

Allow scheduling of tasks #13

Open ksteiny opened 6 years ago

ksteiny commented 6 years ago

It would be nice if we could schedule a task via this cli?

jpignata commented 6 years ago

Thanks for the request! I am 100% going to add that once Fargate is integrated with CloudWatch Events. Really looking forward to it as I think this will be super useful.

Is there a way to do this today that I'm missing?

ksteiny commented 6 years ago

I can manually go into the fargate cluster and add a Scheduled Task and select the tasks created by the fargate cli. From what I can tell its already integrated with Cloudwatch?

jpignata commented 6 years ago

When I tested this, it doesn't actually execute the task on Fargate but rather EC2 for the cluster you selected. There's no way to specify a launch type in the scheduled task, AFAIK. Let me know if I'm totally missing something here.

jpignata commented 6 years ago

I confirmed CloudWatch Events doesn't support the Fargate launch type yet, but will add this functionality once it does. Leaving this open for now to track.

siddarthsreeni-zz commented 6 years ago

@jpignata anyupdate on CloudWatchEvents?

UPDATE: Can see logs on cloudwatch as:Taskname

jpignata commented 6 years ago

Not yet. Keeping my eyes on the AWS What's New blog.

iamzjk commented 6 years ago

@jpignata AWS Fargate Now Supports Time and Event-Based Task Scheduling

hostmaster commented 5 years ago

It would be an awesome feature. I'm really looking forward to it.