(aws-events): use grantPutEventsTo on another eventBus #19034
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
guidance
Question that needs advice or information.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
General Issue
I can find a way to grant put permissions to an eventBus from another eventBus
The Question
I have the following code:
and as highlighted I get the error
Argument of type 'IEventBus' is not assignable to parameter of type 'IGrantable'. Property 'grantPrincipal' is missing in type 'IEventBus' but required in type 'IGrantable'.
. but I can't find any workaround for this. not sure how I can implement that in a different way.I have tried to do
bus.grantPutEventsTo(new PrincipaleFronArn(sourceBus.eventBusArn));
but it didn't create any permessions.CDK CLI Version
2.12.0
Framework Version
2.12.0
Node.js Version
14.19.0
OS
Mac
Language
Typescript
Language Version
4.5.5
Other information
No response
The text was updated successfully, but these errors were encountered: