-
Notifications
You must be signed in to change notification settings - Fork 310
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, Fargate] CloudFormation support for scheduled tasks with Fargate Launch Type #392
Comments
Isn't this supported already? https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html For example, to run a task every 20 minutes:
We do this to regularly run tasks. Of course, replace |
I was just wrestling with this challenge for the first time this week. When you add a scheduled ECS task through the console and describe it through the CLI, that is the structure that you see. However, the EcsParameters Cloudformation documentation doesn't list all of those things:
Edit: This is all being done in N. Virginia/us-east-1. |
Have you used the parameter name as it's listed in my example? It's |
Wow, you have to be kidding me. I swear I tried that combination, I was messing with this for hours but it seemed to work today! Here's the redacted template that I used for anyone's future reference:
I guess AWS just needs to update their documentation. Thanks! |
Careful with undocumented CloudFormation features. It could be the same thing that happened with the use of Secrets on CFN. They could be working on it and they have every right to simply revert their changes and bring it back at a later time since they haven't released it yet. It could be that today you get your template created successfully and maybe 2 days from now you try to update the template and get an error saying invalid syntax because it has changed and you don't know to what. |
I'm successfully using these undocumented parameters thanks to this issue. 👍 |
@m8786 you shouldn't kick your self for the field name
Both captializations are used by AWS in different API's, so no wonder we users are confused! |
It is very confusing indeed |
To add on more confusion, the rule doc page uses sigh! |
Hello, TIA |
Just ran into this issue and can confirm the capitalization of the same type is still different across those two services |
I have ran into, forgotten about, and ran into this issue again multiple times. Wishing for consistency or case insensitivity. |
The case inconsistency is still a thing in 2022! |
Hello from the future where this is still a thing in 2023. Thank you all for making me feel better about my last hour of work. |
ECS supports scheduled tasks using CloudWatch events rules. This issue is specifically to add CloudFormation support for scheduled tasks when using the Fargate launch type.
The text was updated successfully, but these errors were encountered: