Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events: Making inputTransformers available in CfnRule for event bus as a target #30587

Open
2 tasks
polianaysato opened this issue Jun 19, 2024 · 2 comments
Open
2 tasks
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

Comments

@polianaysato
Copy link

polianaysato commented Jun 19, 2024

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

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

CDK version used

2.22.6

Environment details (OS name and version, etc.)

2.22.6

@polianaysato polianaysato added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 19, 2024
@github-actions github-actions bot added the @aws-cdk/aws-events Related to CloudWatch Events label Jun 19, 2024
@pahud
Copy link
Contributor

pahud commented Jun 19, 2024

CfnRule is CDK L1 construct auto generated based on CFN spec specifically AWS::Events::Rule. Please submit a feature request to https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues to help the CFN team prioritize by sharing your use cases. CDK L1 constructs would update as soon as the upstream CFN spec adds relevant props or support.

@pahud pahud added needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p3 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jun 19, 2024
@pahud pahud changed the title (EventBridge): Making inputTransformers available in CfnRule for event bus as a target events: Making inputTransformers available in CfnRule for event bus as a target Jun 19, 2024
@polianaysato
Copy link
Author

Hi @pahud many thanks for your reply. I've just opened another request with the right team

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants