diff --git a/lib/bastion-host-forward.ts b/lib/bastion-host-forward.ts index a01d368..b14604a 100644 --- a/lib/bastion-host-forward.ts +++ b/lib/bastion-host-forward.ts @@ -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 */ @@ -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; } }