I have 3 separate stacks (all in the same account and region)
- The he AuthStack authenticates and sends a new user event object to the EventsBusStack via a lambda postConfirmation trigger lambda function.
- The EventBusStack receives the newUser object via the postConfirmation lambda.
- However, using the CDK I can't seem to figure out a way to target the lambda function located in the third stack, the RewardsStack. The CDK seems to not provide a way to target the lambda function via its arn.
How to create a rule that targets a lambda function located in a different stack using the CDK?