-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ECS] Support for Scheduled Tasks (cron) ECS Tasks #881
Comments
Hi @gregeinfrank Have looked at https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html and other relevant resources? As far as I can see there's no new ECS API for "scheduled tasks". All you seem to need is ECS Task Definition + ECS cluster and CloudWatch Event Rule + CloudWatch Event Target + relevant IAM resources. |
@radeksimko I must have missed that - I will look into cloudwatch_event_target and see if I can schedule ECS tasks from there. Thanks |
@radeksimko @gregeinfrank Looking at the source and documentation, it doesn't look like the resource can send these in its current state. JSON Syntax example in the AWS CLI docs: http://docs.aws.amazon.com/cli/latest/reference/events/put-targets.html |
related: #871 |
@anthonyagresta You're right, thanks for the effort in figuring out what's missing 👍 Re-labelling as enhancement. PRs welcomed 😉 |
#977 was merged and will be part of the next release. |
@anthonyagresta I was struggling with the exact same thing (albeit in Ansible, not terraform), and your comment here helped me figure things out. Big cheers for that! |
So Amazon have just announced and released Amazon ECS Adds Daemon Scheduling. Please could we have support for this attribute in Terraform? |
@joshuamkite Sounds like that should be an entirely separate issue. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Hi,
Amazon recently announced the introduction of Scheduled ECS Tasks - which we would find very useful and prevent us from having to jump through hoops to get scheduled tasks to run on ECS
It would be awesome to be able to start creating these and managing them through Terraform. Sorry if this is a duplicate issue and thank you!
The text was updated successfully, but these errors were encountered: