Open jfix opened 6 years ago
I commented out the plugin and the corresponding timezone
line in the serverless.yml
file for the time being and deployment runs without fault ... mmh. ;-)
Hm.. not entirely sure about the specific error, but I have noticed that AWS is very picky about day-of-week & day-of-month. Namely, it seems one of them must be ?
. However this conflicts with using this plugin & specifying day of week. This is because to support the split months (March & November in the US), the plugin has to specify a day of month (EG: November 1-3 this year), so you cannot specify a DOW other than ?
unfortunately. I'm gonna leave this open since I need to document this limitation. For my own purposes, I accepted that It'll run every day (instead of weekdays, similar to your expression) and the code checks the DOW at start and exits if it is a weekend.
Idea from @dwolfand, make the plugin warn about this limitation in addition to documenting it in the readme.
OK, I understand the limitation (and yes, would be good to document and warn). I may move the check from the cron expression to my code too. Thanks for pointing that out.
i wish this issue could be fixed. also facing similar issue. cant get DST to work properly
I've updated the title of this issue and added a note about this to the readme as a first step. I am going to leave this open so we can eventually add a build-time error message when this happens.
Would love this to be fixed too.
Hello, I've just installed your sls plugin, great find, thanks for the work! I have the following expression:
When deploying from scratch via
sls deploy
I see the following lines, the first one being of your plugin:Would you have an idea whether there is an attempt to create a schedule twice?
I had a look at the
cloudformation-template-update-stack.json
file in the unzipped deployment package and I cannot find anything problematic. I can provide this file if required for analysis.