-
Notifications
You must be signed in to change notification settings - Fork 4k
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
aws.events: Remove / change default CRON Schedule behavior #17881
Comments
Honestly just slipped my mind 😅. It's a good callout. I'll see what I can do about it. |
Per issue #17881, the default value for CRON schedule configuration parameters are which runs every minute/hour/day. This change adds a warning to be emitted upon synthesis and deployment, if minute is empty, that the CRON job will run every minute. Closes #17881. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
General Issue
Default parameter values of CRON Schedule can lead to event spamm
The Question
The default parameters for CRON Schedule configuration are "*" - run every minute / hour / day etc. - reference.
This can potentially lead to misconfigurations and, if not tested, to spamm of events that trigger further actions.
Here is an example:
In the example above, the user might assume that the event will run at 8:00 every Monday. The fact that the default value for
minute
leads to "*" in generated CRON, will cause unexpected spamm of events.Honestly speaking, I don't see any good option for defaults, I believe the user should be forced to supply all parameter values explicitly to avoid misconfigurations (just like he would be required to think over the CRON expression syntax).
CDK CLI Version
1.133.0
OS
Windows 10
Language
Python
Language Version
Python 3.9.2
The text was updated successfully, but these errors were encountered: