-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terraform login doesn't accept copy paste token on Windows 10 #25923
Comments
I can't reproduce this problem on Windows 10, either using Powershell or cmd.exe.
|
I've tried a few more times and still get same result. So I can reproduce. And, before I enter the TF login command I can paste into the terminal. And when I exit the TF login command I can again paste into the terminal. But, while the command is running, I can't keystroke paste or File menu - Edit - Paste into the TF prompt. Maybe I should try a different terminal for Win10 to use with TF? I'm just using cmd.exe currently. Do I need elevated privileges or anything else I should know before I try to start using TF on windows? |
One final thing that may not be clear: when you paste into the password prompt, echo is disabled for security reasons, so it will appear that you are not pasting anything. You need to paste the token from Terraform Cloud, which will display nothing, then hit enter. Terraform will then verify that the token is valid before saving it. Can you try that and report back please? |
LOL that's it. First time using TF so clearly this was user error. Thanks!!! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Version 0.13, windows 10x64
Expected Behavior
What should have happened?
Actual Behavior
Steps to Reproduce
Additional Context
This is the prompt where it gets hung after I create and attempt to paste a token
Terraform must now open a web browser to the tokens page for app.terraform.io.
If a browser does not open this automatically, open the following URL to proceed:
https://app.terraform.io/app/settings/tokens?source=terraform-login
Generate a token using your browser, and copy-paste it into this prompt.
Terraform will store the token in plain text in the following file
for use by subsequent commands:
C:\Users\dev\AppData\Roaming\terraform.d\credentials.tfrc.json
Token for app.terraform.io:
Enter a value:
The text was updated successfully, but these errors were encountered: