From 5da2358cdd679f6ee374f7fe20468a712adff7c0 Mon Sep 17 00:00:00 2001 From: Mike Cowgill Date: Mon, 22 Oct 2018 22:25:06 -0700 Subject: [PATCH] docs: fixing ec2 readme for natgatway configuration --- packages/@aws-cdk/aws-ec2/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-ec2/README.md b/packages/@aws-cdk/aws-ec2/README.md index db5bb8f0f72f9..7940ddb4513bb 100644 --- a/packages/@aws-cdk/aws-ec2/README.md +++ b/packages/@aws-cdk/aws-ec2/README.md @@ -100,12 +100,12 @@ import ec2 = require('@aws-cdk/aws-ec2'); const vpc = new ec2.VpcNetwork(stack, 'TheVPC', { cidr: '10.0.0.0/16', + natGateways: 1, subnetConfiguration: [ { cidrMask: 26, name: 'Public', subnetType: SubnetType.Public, - natGateway: true, }, { name: 'Application', @@ -147,6 +147,7 @@ import ec2 = require('@aws-cdk/aws-ec2'); const vpc = new ec2.VpcNetwork(stack, 'TheVPC', { cidr: '10.0.0.0/16', natGateways: 1, + natGatewayPlacement: {subnetName: 'Public'}, subnetConfiguration: [ { cidrMask: 26,