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
When creating an EventBridge rule for a Lambda function through AWS::Serverless::Events, it's not possible to specify a State. This means that rules will always default to the ENABLED state.
Steps to reproduce the issue:
Create a template with an AWS::Serverless::Lambda resource containing an EventBridgeRule event with a State property.
Run cfn-lint
Observed result:
cfn-lint fails with the following error message:
E0001 Error transforming template: Resource with id [OnEventsFunctionEvent] is invalid. property State not defined for resource of type CloudWatchEvent