Skip to content

Commit ec99fad

Browse files
committed
fix(bastion-host): createElasticIp default to true
1 parent 51a33ca commit ec99fad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bastion-host/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class BastionHost extends Construct {
131131
});
132132

133133
// Assign elastic IP
134-
if (props.createElasticIp) {
134+
if (props.createElasticIp ?? true) {
135135
new ec2.CfnEIP(this, "IP", {
136136
instanceId: this.instance.instanceId,
137137
tags: [{ key: "Name", value: stackName }],
@@ -191,7 +191,7 @@ export interface BastionHostProps {
191191
/**
192192
* Whether or not an elastic IP should be created for the bastion host.
193193
*
194-
* @default true
194+
* @default false
195195
*/
196196
readonly createElasticIp?: boolean;
197197
}

0 commit comments

Comments
 (0)