This message was deleted.
# general
s
This message was deleted.
g
You can specify the zone for each subnet with
location
, but if you specify it for one subnet, you have to specify it for all subnets - e.g.:
Copy code
const vpc = new awsx.ec2.Vpc("web-vpc", {
    cidrBlock: "172.30.0.0/16",
    subnets: [
        { type: "public", location: { availabilityZone: "us-west-2a", cidrBlock: "172.30.0.0/24" }, },
        { type: "public", location: { availabilityZone: "us-west-2b", cidrBlock: "172.30.1.0/24" }, },
    ],
    tags: {
        Name: "web-vpc",
    }
});
a
💥 thank you @gentle-diamond-70147!