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.
@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.
Activity
ShreyaGangishetty commentedon Sep 25, 2019
@dvorontsov
sam validateis throwing errors because you might have an older version ofaws-sam-cli.Enabledproperty of Schedule event is supported from 0.22.0 version onwards.You can check your
samversion with command:sam --versionYou can upgrade your
samby running:brew upgrade aws-sam-cliThe
Enabled: Falseproperty is not ignored by CloudFormation. There is aScheduleevent 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, theScheduleevent rule is disabled (you can see by clicking the resource of resource typeAWS::Events::Rule) in CloudFormation Stack. If either the trigger or the Rule is disabled, it won't trigger your Lambda.