Skip to content

Commit

Permalink
fix(ec2): allow disabling privateDnsEnabled on VPCs (#2596)
Browse files Browse the repository at this point in the history
Fixes #2556.
  • Loading branch information
CaerusKaru authored and rix0rrr committed May 21, 2019
1 parent aec8ec2 commit 4d2fbe9
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 4d2fbe9

Please sign in to comment.