https://pulumi.com logo
Title
w

wet-noon-14291

10/14/2020, 9:59 PM
How do I access the current stack name from code? Is there something like
Deployment.Stack.Name
that would give me `Dev`/`Test`... depending on the name?
w

worried-city-86458

10/14/2020, 10:02 PM
Deployment.Instance.StackName
w

wet-noon-14291

10/14/2020, 10:32 PM
Hmm. I Didn’t find an
Instance
property on the
Deployment
.
w

worried-city-86458

10/14/2020, 10:47 PM
namespace resolution? Try
Pulumi.Deployment.Instance.StackName
t

tall-librarian-49374

10/15/2020, 6:14 AM
I Didn’t find an 
Instance
 property on the 
Deployment
You probably looked at F# Deployment module.
Instance
is on the Deployment class from the root namespace.
w

wet-noon-14291

10/15/2020, 10:48 AM
Almost like you know me to well now @tall-librarian-49374, that is most likely the case 🙂