https://pulumi.com logo
#golang
Title
# golang
b

best-summer-38252

10/28/2021, 9:36 PM
How do you get the stack name via golang sdk? ie something like:
Copy code
pulumi.Run(func(ctx *pulumi.Context) error {
		awsCfg := config.New(ctx, "aws")
		region := awsCfg.Require("region")
		stackName :=  ctx.stack
ctx.stack
doesn't exist but *pulumi.Context has stack
Copy code
type Context struct {
	ctx         context.Context
	info        RunInfo
	stack       Resource
b

bored-table-20691

10/28/2021, 10:08 PM
b

best-summer-38252

10/28/2021, 10:09 PM
Ha nice meeting you here and thanks!
b

bored-table-20691

10/28/2021, 10:12 PM
👍
10 Views