From ec99fad9d3606f4ca572229e82d992f3295f9045 Mon Sep 17 00:00:00 2001 From: Anthony Lukach Date: Tue, 8 Nov 2022 09:23:14 -0800 Subject: [PATCH] fix(bastion-host): `createElasticIp` default to true --- lib/bastion-host/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bastion-host/index.ts b/lib/bastion-host/index.ts index c5689cc..f1a1b84 100644 --- a/lib/bastion-host/index.ts +++ b/lib/bastion-host/index.ts @@ -131,7 +131,7 @@ export class BastionHost extends Construct { }); // Assign elastic IP - if (props.createElasticIp) { + if (props.createElasticIp ?? true) { new ec2.CfnEIP(this, "IP", { instanceId: this.instance.instanceId, tags: [{ key: "Name", value: stackName }], @@ -191,7 +191,7 @@ export interface BastionHostProps { /** * Whether or not an elastic IP should be created for the bastion host. * - * @default true + * @default false */ readonly createElasticIp?: boolean; }