Skip to content

Commit

Permalink
fix(aws-ec2): correctly set private DNS based on user props for inter…
Browse files Browse the repository at this point in the history
…face VPCe

Fixes aws#2556
  • Loading branch information
CaerusKaru authored May 20, 2019
1 parent 7cb8e5e commit 6b529f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ec2/lib/vpc-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6b529f0

Please sign in to comment.