events: Making inputTransformers available in CfnRule for event bus as a target #30587
Labels
@aws-cdk/aws-events
Related to CloudWatch Events
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p3
Describe the feature
Making inputTransformers available in CfnRule for event bus as a target.
Alternatively, making possible to set detailType in EventBridge Pipes with JSONPath (response coming from lambda enrichment step)
Use Case
I have a use case where we integrate MSK cluster with EventBridge Pipes with an Event Bus as a target and enrichment step.
I need to set detail-type dynamically based on the event path. We've tried to achieve that by adding an event rule in the target (event bus) that listens to the kafka event. Then we've tried to set detail-type with the JSONPath.
Currently CfnRule doesn't support set of input, inputPath and inputTransformers for when the target is an event bus (regardless it's in the same or different account).
The docs only mention that it's not possible to use those properties for when event bus is in a different account.
But the feature is not supported for both use cases.
This limitation for setting detail-type dynamically either in EventBridge Pipes or CfnRule (with target = event bus), caused us needing to do a lot of customisation. We had to use a lambda as a target (as opposed to event bus) plus adding a EventBridge client with SDK, besides additional unit tests.
Would there be a way for adding this feature in future releases?
I appreciate your support and help.
Thanks
Proposed Solution
Making inputTransformers available in CfnRule for event bus as a target.
Alternatively, making possible to set detailType with JSONPath (response coming from lambda enrichment step) in EventBridge Pipes.
Other Information
No response
Acknowledgements
CDK version used
2.22.6
Environment details (OS name and version, etc.)
2.22.6
The text was updated successfully, but these errors were encountered: