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
cfn-lint is correct here: The Enabled property in SAM Schedule configuration doesn't work the way it seems like it should. I've addressed this before, but the short answer is that Enabled can't accept an intrinsic – like !If – it gets transformed to a constant ENABLED.
The SAM team has addedState, which is passed through directly in the CloudFormation transformation, but I think it hasn't been released yet. SAM 1.50.0 was released 22 days ago, and that MR was merged 21 days ago. So close!
cfn-lint version: 0.63.0
Description of issue.
I'm seeing a couple weird behaviors with
Fn:If
in theEvents
property ofAWS::Serverless::Function
.When I do the following, I get a warning that
IsPrimaryRegion
is never used.If I change to putting the entire event in an
If
:It complains that
ScheduleTrigger
has no ID. (There are otherEvents
, so that property is never empty).The text was updated successfully, but these errors were encountered: