I just tested `pulumi login --local` and wanted to...
# general
c
I just tested
pulumi login --local
and wanted to switch back to using the service, but no matter how often I call
pulumi logout
, I'm always being logged back in to local
I found that
~/.pulumi/credentials.json
still shows
Copy code
{
  "current": "file://~",
  "accessTokens": {
    "file://~": ""
  }
}
after logout
Following the docs here https://www.pulumi.com/docs/reference/cli/pulumi_login/ that's at least a bit unexpected to me, thinking it would then revert back to the hosted service if I don't specify anything
w
That is surprising. What do you see as output when you
pulumi login
?
Yes - for me -
pulumi logout
leads to removing the
current
. What cli version and OS are you on?
c
Copy code
pulumi login
Logged into david-thinkpad as david (file:///home/david)
Copy code
pulumi version  
v0.17.21
Ubuntu 19.04
deleting the
credentials.json
causes pulumi to prompt me again.
w
Huh - weird. Just tried in
ubuntu
and couldn't reproduce. Could you open an issue with any details so we can investigate?
Copy code
root@9e3dd0052154:/# ~/.pulumi/bin/pulumi login
Manage your Pulumi stacks by logging in.
Run `pulumi login --help` for alternative login options.
Enter your access token from <https://app.pulumi.com/account/tokens>
    or hit <ENTER> to log in using your browser                   :
Logged into <http://pulumi.com|pulumi.com> as lukehoban (<https://app.pulumi.com/lukehoban>)

root@9e3dd0052154:/# ~/.pulumi/bin/pulumi logout

root@9e3dd0052154:/# ~/.pulumi/bin/pulumi login
Manage your Pulumi stacks by logging in.
Run `pulumi login --help` for alternative login options.
Enter your access token from <https://app.pulumi.com/account/tokens>
    or hit <ENTER> to log in using your browser                   :
Logged into <http://pulumi.com|pulumi.com> as lukehoban (<https://app.pulumi.com/lukehoban>)
c
today is weirdness day... AWS is acting up as well 😉 What other info would you like in the issue?
w
Can't think of anything more than what you've shared here - but if you can think of anything else unique - feel free to add it.
👍 1
c
@white-balloon-205 created the issue here: https://github.com/pulumi/pulumi/issues/2926
👍 1