Skip to content

Commit 4d2fbe9

Browse files
CaerusKarurix0rrr
authored andcommitted
fix(ec2): allow disabling privateDnsEnabled on VPCs (#2596)
Fixes #2556.
1 parent aec8ec2 commit 4d2fbe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export class InterfaceVpcEndpoint extends VpcEndpoint implements IInterfaceVpcEn
372372
const subnetIds = subnets.subnetIds;
373373

374374
const endpoint = new CfnVPCEndpoint(this, 'Resource', {
375-
privateDnsEnabled: props.privateDnsEnabled || true,
375+
privateDnsEnabled: props.privateDnsEnabled !== undefined ? props.privateDnsEnabled : true,
376376
policyDocument: new Token(() => this.policyDocument),
377377
securityGroupIds: [this.securityGroupId],
378378
serviceName: props.service.name,

0 commit comments

Comments
 (0)