Channels
pulumi-ai
package-authoring
pulumi-cdk
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
cloudengineering
yaml
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
blog-posts
localstack
welcome
gitlab
pulumi-kubernetes-operator
jobs
aws
pulumi-deployments
dotnet
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
general
Powered by
Title
p
plain-parrot-21984
03/27/2023, 9:41 AM
Is there a way to reference the Pulumi stack name in code?
Like, when defining a string:
apiName := "myApi_"+stackName
?
s
salmon-gold-74709
03/27/2023, 11:20 AM
see
https://www.pulumi.com/docs/intro/concepts/stack/#getting-the-current-stack-programmatically
p
plain-parrot-21984
03/27/2023, 11:27 AM
I'll give it a go, thanks for the link 🙂
6 Views
#golang
Join Slack