Skip to content

Commit 0b1e7cc

Browse files
moofish32Elad Ben-Israel
authored and
Elad Ben-Israel
committed
fix(docs): fix EC2 readme for "natgatway" configuration (#994)
1 parent 33c32a8 commit 0b1e7cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: packages/@aws-cdk/aws-ec2/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ import ec2 = require('@aws-cdk/aws-ec2');
100100

101101
const vpc = new ec2.VpcNetwork(stack, 'TheVPC', {
102102
cidr: '10.0.0.0/16',
103+
natGateways: 1,
103104
subnetConfiguration: [
104105
{
105106
cidrMask: 26,
106107
name: 'Public',
107108
subnetType: SubnetType.Public,
108-
natGateway: true,
109109
},
110110
{
111111
name: 'Application',
@@ -147,6 +147,7 @@ import ec2 = require('@aws-cdk/aws-ec2');
147147
const vpc = new ec2.VpcNetwork(stack, 'TheVPC', {
148148
cidr: '10.0.0.0/16',
149149
natGateways: 1,
150+
natGatewayPlacement: {subnetName: 'Public'},
150151
subnetConfiguration: [
151152
{
152153
cidrMask: 26,

0 commit comments

Comments
 (0)