https://pulumi.com logo
#general
Title
# general
q

quick-action-34599

09/04/2019, 3:00 PM
I am trying to figure out why using
.getSubnets('public')
on my default VPC only returns 2 subnets when it has 3 in AWS.
g

gentle-diamond-70147

09/04/2019, 3:22 PM
Which specific function are you calling? Can you share your full code?
q

quick-action-34599

09/04/2019, 3:42 PM
Copy code
const vpc = awsx.ec2.Vpc.getDefault();
const subnets = vpc.getSubnets('public');
This only returns 2 subnets (and 2 are listed on pulumi’s online resource listing) but in AWS my default VPC has 3 public subnets (for a, b, c availability zones)
g

gentle-diamond-70147

09/04/2019, 4:07 PM
Sounds like a bug - can you open an issue at https://github.com/pulumi/pulumi-awsx ?
q

quick-action-34599

09/04/2019, 4:12 PM
yea