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

average-dream-51210

05/25/2019, 11:50 PM
Is there an example anywhere of aws VPC with public/private subnets spanning multiple AZs in Pulumi?
w

white-balloon-205

05/26/2019, 12:14 AM
The
awsx.ec2.Vpc
component can take care of creating all the various configurations of VPCs - that might be worth checking out.
a

average-dream-51210

05/26/2019, 12:57 AM
Ah thanks!!
Also found this guy: https://github.com/pulumi/pulumi-awsx/blob/master/nodejs/awsx/network.ts Which would be better to use? Or better supported?
w

white-balloon-205

05/26/2019, 1:47 PM
The
Vpc
component actually subsumes the older
Network
. The latter is noted at deprecated at https://github.com/pulumi/pulumi-awsx/blob/master/README.md.
a

average-dream-51210

05/28/2019, 8:26 PM
Ah got it, thanks!!
Is there an example somewhere of a VPC with multiple pub/priv subnets over multiple AZs using the
awsx.ec2.Vpc
module?
Nevermind! The Vpc module is pretty intuitive. Very nice abstraction level you folks have going there 🙂
Just on initial entry into the module i was confused as to why it was put under
ec2
other than that, awesome stuff.
w

white-balloon-205

05/29/2019, 1:11 AM
Yes - this namespacing is due to the (largely historical) association of the underlying networking resources in AWS into the ec2 namespace. But agreed that as you move to higher level abstractions this becomes less obvious. Something to consider for future updates to namespace structure here.