https://pulumi.com logo
Title
a

astonishing-dinner-89046

07/02/2021, 4:54 AM
Hello! I’m familiar w/ Terraform and spent the last 2 days learning about Pulumi. Is there a counterpart for Terraform Modules? The Pulumi examples on youtube all uses a flat file with all resources lumped together. In the real world, what’s the best practice in spinning up a new AWS region with varying resources? What does the structure look like?
b

brave-planet-10645

07/02/2021, 6:37 AM
Hi Henry, welcome to Pulumi. I think the closest comparison to a TF module would be. ComponentResource (docs). Also, take a look at the stack reference example which shows both the usage of ComponentResource but also how to split up your infrastructure into manageable projects and reference things like the VPC across them:
👍🏻 1
a

astonishing-dinner-89046

07/02/2021, 5:09 PM
Thanks Piers, this is exactly what I’m looking for.