File tree 2 files changed +3
-2
lines changed
packages/@aws-cdk/aws-events 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ export class Rule extends Resource implements IRule {
397
397
} ) ;
398
398
new CfnEventBusPolicy ( eventBusPolicyStack , 'GivePermToOtherAccount' , {
399
399
action : 'events:PutEvents' ,
400
- statementId : `Allow-account-${ sourceAccount } ` ,
400
+ statementId : `Allow-account-${ sourceAccount } - ${ this . node . addr } ` ,
401
401
principal : sourceAccount ,
402
402
} ) ;
403
403
}
Original file line number Diff line number Diff line change @@ -901,6 +901,7 @@ describe('rule', () => {
901
901
const app = new cdk . App ( ) ;
902
902
903
903
const sourceAccount = '123456789012' ;
904
+ const nodeAddr = 'c810f4680339b01edf1f157c4fd07da73469742773' ;
904
905
const sourceStack = new cdk . Stack ( app , 'SourceStack' , {
905
906
env : {
906
907
account : sourceAccount ,
@@ -982,7 +983,7 @@ describe('rule', () => {
982
983
const eventBusPolicyStack = app . node . findChild ( `EventBusPolicy-${ sourceAccount } -us-west-2-${ targetAccount } ` ) as cdk . Stack ;
983
984
Template . fromStack ( eventBusPolicyStack ) . hasResourceProperties ( 'AWS::Events::EventBusPolicy' , {
984
985
'Action' : 'events:PutEvents' ,
985
- 'StatementId' : `Allow-account-${ sourceAccount } ` ,
986
+ 'StatementId' : `Allow-account-${ sourceAccount } - ${ nodeAddr } ` ,
986
987
'Principal' : sourceAccount ,
987
988
} ) ;
988
989
} ) ;
You can’t perform that action at this time.
0 commit comments