Skip to content

Commit

Permalink
Set principalAccount in LazyRole.
Browse files Browse the repository at this point in the history
  • Loading branch information
skinny85 committed May 30, 2020
1 parent d635729 commit ce52185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-iam/lib/lazy-role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface LazyRoleProps extends RoleProps {
*/
export class LazyRole extends cdk.Resource implements IRole {
public readonly grantPrincipal: IPrincipal = this;
public readonly principalAccount: string | undefined = this.account;
public readonly assumeRoleAction: string = 'sts:AssumeRole';

private role?: Role;
Expand Down

0 comments on commit ce52185

Please sign in to comment.