Open jchannon opened 5 years ago
These concepts of public, private and isolated are things that are not well defined at the pure AWS layer, and are instead part of the awsx abstraction around VPCs.
I can imagine we might be able to add helpers to introspect an AWS subnet and determine which of thesr it was, but that would be in awsx helpers.
I’ll move this to that repo.
Right. Note that you should be able to use awsx.ecs.getSubnet to get a value back that you can check the tags:
of. Pulumi should be creating a tag called type
there.
We can def look into making this easier to obtain!
When calling
const subnetsids = pulumi.output( aws.ec2.getSubnetIds({vpcId: primaryVpcId,}));
it would be helpful if theids
property contained the type of subnet it is eg/public,private,isolated