From 0b1e7cc2148ec58b592415f316f7597dd41ae5d7 Mon Sep 17 00:00:00 2001 From: Mike Cowgill Date: Mon, 22 Oct 2018 23:50:18 -0700 Subject: [PATCH] fix(docs): fix EC2 readme for "natgatway" configuration (#994) --- 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,