Hello! I’m familiar w/ Terraform and spent the las...
# getting-started
a
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
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
Thanks Piers, this is exactly what I’m looking for.