This message was deleted.
# general
s
This message was deleted.
c
Hi @tall-needle-56640, Is it the pulumi access token that you are prompted for? Can you share the actual error?
t
Copy code
> pulumi login <https://pulumistatepoc.blob.core.windows.net/>
Manage your Pulumi stacks by logging in.
Run `pulumi login --help` for alternative login options.
Enter your access token:
I don't know anything about using a Pulumi access token in a self-managed system.
b
@tall-needle-56640 it's in this page: https://www.pulumi.com/docs/intro/concepts/state/
you need to prefix with
azblob
t
yeah, those instructions are confusing, since it didn't explain the format of the bucket. Is this right?
Copy code
pulumi login --cloud-url <azblob://https://pulumistatepoc.blob.core.windows.net/>
b
i don't know what your bucket is called, but you don't need the https
what's your bucket called?
t
My bucket (known in Azure as a container) is named
state
. So it really only wanted the bucket/container name
Copy code
pulumi login <azblob://state>
and not the URL with the bucket. Which is strange to me because I don't see the
endpointSuffix
defined (i.e. "core.windows.net") which is needed if targeting Azure Stack (or a separate Azure cloud, like for government and education).
b
you can override the endpointsuffix by setting the env
AZURE_STORAGE_DOMAIN
https://github.com/google/go-cloud/blob/master/blob/azureblob/azureblob.go#L30 it's admittedly not well documented
t
OK. Cool. Follow-up question: If I try to create a
dev
stack for two different projects (still with Azure Storage), I get an error
error: stack 'dev' already exists
But I can create stacks with the same names when using the Pulumi backend, right? Is this a bug?
b
we don't namespace them the same, so you generally need to do
project.dev
and then
project.prod
pulumi stack init project.dev
t
Shouldn't they be namespaced the same? Why wouldn't they be namespaced the same?
b
there's quite a lot of reasons, which can be summarized here: https://github.com/pulumi/pulumi/issues/4605 but the short version is that the oss backends don't support an organization/project/stack mechanism. the overriding feature request for this is here: https://github.com/pulumi/pulumi/issues/2814