steep-printer-55468
12/04/2019, 10:39 PMawsx.ec2.Vpc
to manage VPCs. I have a VPC that previously didn't configure any NAT gateways. I just updated it with numberofNatGateways: 2
to add some gateways but Pulumi doesn't detect the change. Is that a bug? If not, what am I doing wrong? And if so... how do I work around it?lemon-spoon-91807
12/05/2019, 1:06 AMsteep-printer-55468
12/05/2019, 2:33 AMconst privateVpc = new awsx.ec2.Vpc("private", {
cidrBlock: "10.255.0.0/16",
numberOfAvailabilityZones: 2,
numberOfNatGateways: 2,
subnets: [
{ type: "private", name: "private", cidrMask: 24 },
{ type: "isolated", name: "database", cidrMask: 24 },
]
});
for (let subnet of privateVpc.privateSubnets) {
let gw = privateVpc.addNatGateway(`natgw-${subnet.subnetName}`, {
subnet: subnet.id,
});
subnet.createRoute(`natgw-route-${subnet.subnetName}`, {
destinationCidrBlock: "0.0.0.0/0",
natGatewayId: gw.natGateway.id,
});
}