AWS Events: Create Event Bridge target from an rule defined in a different stack #21997
Unanswered
lucashfreitas
asked this question in
Q&A
Replies: 1 comment 5 replies
-
If you need the addTarget() method you will need to create a new Rule object |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a CDK stack that defines all event bridges
rules
and exports their ARNs as outputs. I would like to create a target for that rules in other stacks where my consumers are.I can access the role from an exported ARN without issues:
The Object returned from
FromEventRuleArn
doesn't have properties to AddTarget.aws_events
also doesn't have any way to create a new target passing a rule as a reference/option.Beta Was this translation helpful? Give feedback.
All reactions