From 6b529f097283cc95d1f8951fdcef187e4e92f88c Mon Sep 17 00:00:00 2001 From: CaerusKaru Date: Mon, 20 May 2019 17:52:04 -0500 Subject: [PATCH] fix(aws-ec2): correctly set private DNS based on user props for interface VPCe Fixes #2556 --- packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts b/packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts index 440687e06c2d4..5c3ac82219ff0 100644 --- a/packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts +++ b/packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts @@ -372,7 +372,7 @@ export class InterfaceVpcEndpoint extends VpcEndpoint implements IInterfaceVpcEn const subnetIds = subnets.subnetIds; const endpoint = new CfnVPCEndpoint(this, 'Resource', { - privateDnsEnabled: props.privateDnsEnabled || true, + privateDnsEnabled: props.privateDnsEnabled !== undefined ? props.privateDnsEnabled : true, policyDocument: new Token(() => this.policyDocument), securityGroupIds: [this.securityGroupId], serviceName: props.service.name,