Version 0.13, windows 10x64
What should have happened?
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:
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.
Most helpful comment
LOL that's it. First time using TF so clearly this was user error. Thanks!!!