This message was deleted.
s
This message was deleted.
h
I'd like to host multiple Stack(s) in a single C# project. This consists of multiple classes that implement Stack so: MyStack1 and MyStack2. I would then like to target the stacks based on the stack that is selected by pulumi:
Copy code
pulumi stack select stack1-dev
pulumi up
When this runs I
RunAsync<MyStack1>()
from main.
Copy code
pulumi stack select stack2-dev
pulumi up
This runs
RunAsync<MyStack2>()
But in order to do this I have to access the environment variables to identify the stack (PULUMI_STACK) since DeploymentInstance is not available yet. Am I thinking about this wrong?