sparse-intern-71089
07/16/2019, 1:42 PMgentle-diamond-70147
07/16/2019, 3:32 PMconst server = new aws.ec2.Instance("web-server", {
// ...
subnetId: vpc.privateSubnetsIds[0], // reference the subnet created by awsx
});
fierce-cpu-94517
07/16/2019, 3:48 PMus-east-1a
?gentle-diamond-70147
07/16/2019, 3:51 PMgentle-diamond-70147
07/16/2019, 3:51 PMfierce-cpu-94517
07/16/2019, 3:58 PMus-east-1a
that I need to attach to the instance. that's why I used a filter on the subnet collection.fierce-cpu-94517
07/16/2019, 3:59 PMsubnets => subnets.filter(x => x.subnet.availabilityZone == ebs.availabilityZone)
fierce-cpu-94517
07/17/2019, 8:56 AMvpc.privateSubnets[0].subnet.availabilityZone
when configuring the EBS volume AZ