https://pulumi.com logo
Title
a

abundant-umbrella-49346

05/03/2023, 12:09 PM
good evening guys, I am having a serious issue with pulumi I am new to it. I am trying to use pulumi login but I have a serious Issue and I cant use the token so how should I use it?
e

echoing-dinner-19531

05/03/2023, 12:15 PM
Should just be a case of writing the token in when prompted by
login
. You can also try setting it as an environment variable
export PULUMI_ACCESS_TOKEN=token
and then checking
pulumi whoami
a

abundant-umbrella-49346

05/03/2023, 12:21 PM
thank you for replying. Do you mean: pulumi login xxxxx?
e

echoing-dinner-19531

05/03/2023, 12:21 PM
No just run
pulumi login
it will then ask for the token
This is so you don't have to put secret tokens into your command history
a

abundant-umbrella-49346

05/03/2023, 12:22 PM
I always get this error: problem logging in: PULUMI_ACCESS_TOKEN must be set for login during non-interactive CLI sessions
e

echoing-dinner-19531

05/03/2023, 12:23 PM
Ah this is probably the CLI doesn't recognize your terminal
you can just set that envvar instead
export PULUMI_ACCESS_TOKEN=token; pulumi whoami
a

abundant-umbrella-49346

05/03/2023, 12:24 PM
oh I am in, finally
thank you so much
I appreciate it ☺️
e

echoing-dinner-19531

05/03/2023, 12:25 PM
no worries 🙂
Just to check, are you using mintty?
a

abundant-umbrella-49346

05/03/2023, 12:28 PM
no I am using git bash
e

echoing-dinner-19531

05/03/2023, 12:29 PM
Right by default that uses mintty. If you right click the terminal window bar and select "Options" then "About" it should say.
a

abundant-umbrella-49346

05/03/2023, 12:34 PM
Oh I see, I am new to bash literally, I am just good with AWS services, and I just finished my master's so I know most of the fields related with ML including NLP, classical and advanced ML, deep learning including computer vision and so on but I really liked how MLOps works and the base behind its concepts and I like how it works interacts with the business itself not just coding so now I am trying to push my "infrastructure as a code" knowledge so pardon my lack of information I am new to this. You were just straight to the point, thank you.
e

echoing-dinner-19531

05/03/2023, 12:36 PM
Again no worries, just wanted to confirm there weren't any other strange terminals.
https://stackoverflow.com/questions/61033452/the-input-device-is-not-a-tty-if-you-are-using-mintty-try-prefixing-the-comman is another example of mintty tripping up terminal detection in docker-compose. I'd suggest trying to use a different terminal if you can, you should be able to use git bash with the new windows terminal instead of mintty.
a

abundant-umbrella-49346

05/03/2023, 12:42 PM
I dealt with docker a lot recently in my graduation project whether locally using VScode or through EC2s. Can you recommend a better terminal?
I mean I didnt have a problem in VScode, I didnt try git bash / github repo for example
l

little-library-54601

05/03/2023, 12:59 PM
Sounds like you're on Windows. Try Powershell Core. That's what I use for all my pulumi CLI work.
a

abundant-umbrella-49346

05/03/2023, 1:03 PM
oh thank you, will do.