How do I create a remote workspace directly? #9032
-
Hello community, as part of using the automation API, I find myself needing to list all of my currently existing stacks. For this I am using the Workspace method called ListStacks. However, in order to get a workspace that points to my remote backend (S3), I'm currently creating a dummy stack in order to use that stack's method to fetch the workspace:
Isn't there a direct way to create a Workspace that points to the remote backend? Currently, the only way I can find to directly create a Workspace is to create a Local one, with Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The There is some confusing and conflicting terminology in Automation API, so I'd like to define a few things to help clarify. In the context of Automation API and source, the terms
|
Beta Was this translation helpful? Give feedback.
The
ProjectSettings
determine what backend to connect to. Here is an example where the project settings specify a local file. This is not exactly what you are looking for, but this code could be updated so that theBackend
points to an S3 filestate backend:https://github.com/pulumi/automation-api-examples/blob/80afd678f6adc51eb9f0279ca62408b7f1e4623c/go/inline_passphrase_secrets_provider/main.go#L94-L100
There is some confusing and conflicting terminology in Automation API, so I'd like to define a few things to help clarify.
In the context of Automation API and source, the terms
Remote
(source code in git),