Skip to content

Commit

Permalink
expose bastion host ip (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowiow authored Sep 5, 2023
1 parent e49f67d commit ded1867
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/bastion-host-forward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ export class BastionHostForward extends Construct {
*/
public securityGroup?: ISecurityGroup;

/**
* @returns the private ip address of the bastion host
*/
public instancePrivateIp?: string;

/**
* @returns The BastionHost Instance
*/
Expand Down Expand Up @@ -113,5 +118,6 @@ export class BastionHostForward extends Construct {
cfnBastionHost.userData = Fn.base64(shellCommands.render());

this.instanceId = this.bastionHost.instance.instanceId;
this.instancePrivateIp = this.bastionHost.instance.instancePrivateIp;
}
}

0 comments on commit ded1867

Please sign in to comment.