Hi guys, after doing `pulumi login --local` I'm n...
# general
b
Hi guys, after doing
pulumi login --local
I'm not able to login to the pulumi backend anymore. I tried
pulumi login
,
pulumi login <http://app.pulumi.com|app.pulumi.com>
. I'm getting this error
Copy code
error: problem logging in: getting user info from <http://app.pulumi.com>: unmarshalling response object: invalid character '<' looking for beginning of value
b
Can you run ‘Pulumi whoami -v’
And confirm you are logged into local backend
If so, then you should be able to “Pulumi logout” from that backend
b
yes it worked! thanks🙌
c
If you are trying to login to the Pulumi Managed Backend, you need to use the api URL and not the console URL. So it should be
pulumi login <https://api.pulumi.com>
. Notice that it is
api
and not
app
. There is an issue open to make the error message more helpful: https://github.com/pulumi/pulumi/issues/3194
👍 1
b
well the issue was I had not logged out of
local
so I wasn't able to login to pulumi backend... Moreover, the [login page](https://www.pulumi.com/docs/reference/cli/pulumi_login) says it should be
<http://app.pulumi.com|app.pulumi.com>
(
app
instead of
api
) so this create MORE confusion 😛
c
Moreover, the [login page](https://www.pulumi.com/docs/reference/cli/pulumi_login) says it should be
<http://app.pulumi.com|app.pulumi.com>
Do you mean this line?
By default, this will log into <http://app.pulumi.com|app.pulumi.com> ...
If so, the page is correct, but a bit unclear. By specifying the api.pulumi.com URL as the backend for the CLI, you will be logged-into your account that you have on app.pulumi.com. But I can see how that is confusing. I’ll add an issue to clarify that.
💯 1