sparse-intern-71089
02/23/2021, 4:22 PMbillowy-army-68599
pulumi.Config() and then wrap any resources in an if statement. Example in typescript
const config = new pulumi.Config()
const doStuff = config.require_boolean("doStuff")
if doStuff {
// my resource here
}billowy-army-68599
pulumi config set doStuff truebillowy-army-68599
stack = pulumi.getStack()
if stack == "dev" {
// do something
}refined-journalist-70469
02/23/2021, 4:35 PMbillowy-army-68599
getStack or config calls in your component resource though, making them options on the resource itself is a good idea though