stale-answer-34162
10/26/2023, 2:53 PMerror: Duplicate resource URN 'urn:pulumi:testeks::testeks::awsx:ec2:Vpc$aws:ec2/vpc:Vpc$aws:ec2/subnet:Subnet::eks-vpc-private-1'; try giving it a unique name
// Create a VPC. availability zones to which the subnets defaults to the first 3 AZs in the current region.
let vpc = new awsx.ec2.Vpc('eks-vpc', {
cidrBlock: "10.0.0.0/16",
subnetSpecs: [
{ type: "Public", cidrMask: 20 },
// { type: "Public", cidrMask: 20 },
{ type: "Private", cidrMask: 20 },
// { type: "Private", cidrMask: 20 },
],
});
stocky-restaurant-98004
10/26/2023, 10:31 PMsubnetSpecs
? If so, and if it's practical, just tear it down and start over. You're also probably better off with the default options here since you probably want a smaller public subnet than private.