Skip to content

Commit

Permalink
fix(bastion-host): createElasticIp default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Nov 8, 2022
1 parent 51a33ca commit ec99fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bastion-host/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down Expand Up @@ -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;
}

0 comments on commit ec99fad

Please sign in to comment.