You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure to add Enabled: False (default will be "true")
Deploy to AWS
Observed result: Enabled: False property is ignored. In addition, when running such template through sam validate command, it results in error with property Enabled not defined for resource of type Schedule message.
Expected result:
Lambda trigger expected to be disabled.
The text was updated successfully, but these errors were encountered:
@dvorontsovsam validate is throwing errors because you might have an older version of aws-sam-cli. Enabled property of Schedule event is supported from 0.22.0 version onwards.
You can check your sam version with command: sam --version
You can upgrade your sam by running: brew upgrade aws-sam-cli
The Enabled: False property is not ignored by CloudFormation. There is a Schedule event rule (that can be enabled /disabled) as well as a trigger in the Lambda UI that can be enabled / disabled). The Lambda UI is showing the trigger state, which is enabled. However, the Schedule event rule is disabled (you can see by clicking the resource of resource type AWS::Events::Rule) in CloudFormation Stack. If either the trigger or the Rule is disabled, it won't trigger your Lambda.
Description:
Enabled
property ofSchedule
event source type is not working. https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#scheduleSteps to reproduce the issue:
Schedule
event source type for a function.Enabled: False
(default will be "true")Observed result:
Enabled: False
property is ignored. In addition, when running such template throughsam validate
command, it results in error withproperty Enabled not defined for resource of type Schedule
message.Expected result:
Lambda trigger expected to be disabled.
The text was updated successfully, but these errors were encountered: