https://pulumi.com logo
p

powerful-solstice-72628

09/05/2023, 7:02 AM
hi all. Terraform has the concept of workspaces and input variables. How should I replicate their use in Pulumi? For example, we deploy many EKS clusters into many regions of production. In Terraform, we have a single configuration which uses workspaces titled eg
prod_us-east-1_001
,
prod_us-east-1_002
, and so on. When we run Terraform for a workspace, we pass in matching variables like
-var env=prod -var region=us-east-1 -var id=001
. How do I model this in Pulumi?
l

limited-rainbow-51650

09/05/2023, 12:48 PM
I think Stacks is what you are after. On each stack, you can configure the required variables, which we call stack configuration. A good starter is to read all of the
Concepts
section on our website to find out how all the pieces fit together when using Pulumi.