https://pulumi.com logo
#automation-api
Title
# automation-api
b

bored-table-20691

02/07/2022, 11:54 PM
Is there in the Automation API to specify the org a project is in?
Copy code
ws, err := auto.NewLocalWorkspace(ctx, auto.Project(workspace.Project{
		Name:    tokens.PackageName("..."),
		Runtime: workspace.NewProjectRuntimeInfo("go", nil),,
	}))
Basically, how can I replace
to specify the fully qualified name of my project? I tried
myorg/myproject
but it doesn’t seem to take.
l

lemon-agent-27707

02/08/2022, 3:41 AM
You specify this via the stack name. There is a helper function with this (assuming you are using the pulumi.com backend) https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/auto#FullyQualifiedStackName
b

bored-table-20691

02/08/2022, 3:46 AM
In this case I don't have a stack - I want to list all stacks.
l

lemon-agent-27707

02/09/2022, 2:31 AM
Ah, I see how this could be ambiguous. Would you mind opening an issue github.com/pulumi/pulumi/issues/new
b

bored-table-20691

02/09/2022, 2:35 AM
Yes I will open one.
4 Views