Skip to content

Add Support for State in CloudWatchEvent/EventBridgeRule/Schedule events for AWS::Serverless::Lambda #1630

@nmoutschen

Description

@nmoutschen

Description:

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:

  1. Create a template with an AWS::Serverless::Lambda resource containing an EventBridgeRule event with a State property.
  2. 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

Expected result:

No error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions