hi all. Terraform has the concept of workspaces an...
# getting-started
p
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
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.