https://pulumi.com logo
#general
Title
# general
w

witty-vegetable-61961

04/20/2022, 11:07 PM
quick question guys. I am deploying some auth0 apps via Pulumi. I have a dev stack created, and would have a further stack for tst, stg, etc. How can I pass in the stack name (which is the environment name) to my c#? I.E. when I run pulumi up for dev, the dev environment name is passed to c#, as the auth0 app names are dynamically generated.
w

witty-vegetable-61961

04/20/2022, 11:13 PM
that looks like it! is there an example code?
l

little-cartoon-10569

04/20/2022, 11:22 PM
You could look through https://github.com/pulumi/examples for any repos with
-cs-
in their name.. I couldn't find any examples of DeploymentInstance in use.
w

witty-vegetable-61961

04/20/2022, 11:23 PM
no prob, I will give this a go!
In case anyone is wondering, the property is var stack = Deployment.Instance.StackName;
👍 1
3 Views