I am trying to create a reusable scheduler. The idea is to make one scheduler and have various lambdas reuse it.
Example:
In my main.yaml file, I did the following
dev:
cron-warmer:
name: cron-dev-warmer
rate: cron(0/10 10-23 ? * 2-6 *)
enabled: true
input:
warmer: true
concurrency: 1
Then for my lambdas, I am wanting to do the following:
events:
- schedule: ${self:custom.${self:provider.stage}.cron-warmer}
I want to have one cloudwatch event that can trigger multiple lambdas. When I applied this, I ran into an error saying unable to create cron-dev-warmer because it was already created.
Thoughts?