https://pulumi.com logo
#aws
Title
# aws
h

handsome-twilight-36302

04/22/2023, 7:04 PM
Hi. I'm using the
publicSubnetIds
property of awsx.ec2.DefaultVpc, but I realized that's returning all my subnet ids, both public and private. Is there a reason for that and a way to get around that?
b

billowy-army-68599

04/22/2023, 7:07 PM
Default VPCs only have public subnets. Did you manually create private subnets?
h

handsome-twilight-36302

04/22/2023, 7:08 PM
Not me, but my coworkers did. So Pulumi doesn't look for NAT gateways or Internet Gateways in the routing tables in order to tell if it's public or private?
b

billowy-army-68599

04/22/2023, 7:23 PM
Not from the default VPC no, if you use getSubnets you can be more specific about the lookup
h

handsome-twilight-36302

04/22/2023, 7:28 PM
Ok, thanks
2 Views