good evening guys, I am having a serious issue wit...
# general
a
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
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
thank you for replying. Do you mean: pulumi login xxxxx?
e
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
I always get this error: problem logging in: PULUMI_ACCESS_TOKEN must be set for login during non-interactive CLI sessions
e
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
oh I am in, finally
thank you so much
I appreciate it ☺️
e
no worries 🙂
Just to check, are you using mintty?
a
no I am using git bash
e
Right by default that uses mintty. If you right click the terminal window bar and select "Options" then "About" it should say.
a
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
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
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
Sounds like you're on Windows. Try Powershell Core. That's what I use for all my pulumi CLI work.
a
oh thank you, will do.