Skip to content

(aws-scheduler-targets-alpha): Add EventBridgePutEvents Target #27454

Closed
@filletofish

Description

Describe the feature

Work to support L2 constructs for AWS Scheduler is in progress (#23394). See the approved RFC. RFC planned to add 12 templates targets, but only Lambda Invoke is currently implemented (#26575).

This issue tracks implementation of EventBridgePutEvents target to put an event to AWS Event Bridge Event Bus.

Use Case

Customers would like to use templated target EventBridgePutEvents to be able to put events to Event Bus on schedule. L2 target construct should grant required permissions to the AWS Scheduler to put events to a Event Bus.

Proposed Solution

The proposed solution needs to be adopted to the recent examples of LambdaInvoke (https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-scheduler-targets-alpha/lib/lambda-invoke.ts).

Solution should also include unit and integration tests.

Class EventBridgePutEvents should:

  1. Grant Scheduler Execution Role permissions to Put Events via addTargetActionToRole
  2. Override bindBaseTargetConfig to return eventBridgeParameters as part of ScheduleTargetConfig.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.99.1

Environment details (OS name and version, etc.)

MacOS

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-eventsRelated to CloudWatch Eventseffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions