'how to enable/disable a cron job via lambda in aws?
set up - a cron job to invoke a lambda via cloudformation. I need to enable/disable this cron job via another lambda, or even delete this based on some other process/trigger. is that possible or how can i do that?
cronJob:
Type: AWS::Events::Rule
Properties:
ScheduleExpression: cron(0/15 * * * ? *)
Targets:
- Arn:
Fn::GetAtt: [ someLambdaFunction, "Arn" ]
Id:
Ref: someLambdaFunction
someLambdaFunction:
Type: AWS::Lambda::Function
...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
