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

damp-book-35965

03/21/2019, 6:03 PM
Trying to understand this: I'm trying to get all subnet Ids given a VPC id like this:
Copy code
const subnetIds = pulumi.output(aws.ec2.getSubnetIds({
  vpcId: vpcId,
}));
I thought you could get
subnetIds.ids
directly but doesn't seem to be working..What am I doing wrong ?
Resolved it..I can get it directly but when I do a console.log of the subnetIds.ids it does not actually print it