https://pulumi.com logo
Title
q

quaint-portugal-34880

12/07/2021, 6:15 AM
Hi, I would like to create a vpc with awsx.ec2.Vpc but I would like to create my own subnet's to be able to share RouteTables between some of them. How can I do that?
l

little-cartoon-10569

12/07/2021, 8:08 PM
You can pass in an empty array for the various subnets, then do it the normal way.
However: if you're not taking advantage of the subnets and NAT gateway, then consider not using awsx. It is only there to take away that sort of "undifferentiated heavy lifting": if your heavy lifting is differentiated, then it may be worth doing it yourself.
q

quaint-portugal-34880

12/07/2021, 8:44 PM
Yes, I think I will skip awsx and use regular aws resource instead to be able to better manage the configuration
l

little-cartoon-10569

12/07/2021, 8:45 PM
If you've got the inclination at the same time, I've been told that running your own NAT gateway using a right-sized EC2 instance is a good way to save money. Once you move to aws.ec2, this becomes an option (if you have the dev time available).
q

quaint-portugal-34880

12/07/2021, 9:49 PM
Sounds like a good option, we have started a migration to shared VPCs and transition GW to reduce to only 2 NAT instances