We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
createElasticIp
1 parent 51a33ca commit ec99fadCopy full SHA for ec99fad
lib/bastion-host/index.ts
@@ -131,7 +131,7 @@ export class BastionHost extends Construct {
131
});
132
133
// Assign elastic IP
134
- if (props.createElasticIp) {
+ if (props.createElasticIp ?? true) {
135
new ec2.CfnEIP(this, "IP", {
136
instanceId: this.instance.instanceId,
137
tags: [{ key: "Name", value: stackName }],
@@ -191,7 +191,7 @@ export interface BastionHostProps {
191
/**
192
* Whether or not an elastic IP should be created for the bastion host.
193
*
194
- * @default true
+ * @default false
195
*/
196
readonly createElasticIp?: boolean;
197
}
0 commit comments