Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Cannot Specify Day of the Week in Cron Expression #3

@jfix

Description

@jfix

Hello, I've just installed your sls plugin, great find, thanks for the work! I have the following expression:

      - schedule:
          rate: cron(0 7 ? * MON-FRI *)
          timezone: Europe/Paris

When deploying from scratch via sls deploy I see the following lines, the first one being of your plugin:

$ sls deploy
Serverless: Converting local crontabs to UTC crontabs...
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
.....
Serverless: Stack create finished...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (3 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
.....................
Serverless: Operation failed!
 
  Serverless Error ---------------------------------------
 
  An error occurred: NudgerEventsRuleSchedule2 - send-export-feedback-nudge already exists in stack arn:aws:cloudformation:eu-central-1:[obfuscated]:stack/export-nudger-dev/[obfuscated].

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions