Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mmmorris1975/6b1fa639ca3562b74ad04678d2a8adbe to your computer and use it in GitHub Desktop.
Save mmmorris1975/6b1fa639ca3562b74ad04678d2a8adbe to your computer and use it in GitHub Desktop.
TF Cloud (hashicorp/terraform ##24858)
$ TF_LOG=TRACE $GOPATH/bin/terraform login
2020/05/04 20:50:18 [INFO] Terraform version: 0.13.0 dev
2020/05/04 20:50:18 [INFO] Go runtime version: go1.13.10
2020/05/04 20:50:18 [INFO] CLI args: []string{"/Users/mo****m1/GolandProjects/bin/terraform", "login"}
2020/05/04 20:50:18 [DEBUG] Attempting to open CLI config file: /Users/mo****m1/.terraformrc
2020/05/04 20:50:18 Loading CLI configuration from /Users/mo****m1/.terraformrc
2020/05/04 20:50:18 Loading CLI configuration from /Users/mo****m1/.terraform.d/credentials.tfrc.json
2020/05/04 20:50:18 [DEBUG] checking for credentials in "/Users/mo****m1/.terraform.d/plugins"
2020/05/04 20:50:18 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/05/04 20:50:18 [DEBUG] ignoring non-existing provider search directory /Users/mo****m1/Library/Application Support/io.terraform/plugins
2020/05/04 20:50:18 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2020/05/04 20:50:18 [INFO] CLI command args: []string{"login"}
2020/05/04 20:50:18 [DEBUG] Service discovery for app.terraform.io at https://app.terraform.io/.well-known/terraform.json
Terraform will request an API token for app.terraform.io using your browser.
If login is successful, Terraform will store the token in plain text in
the following file for use by subsequent commands:
/Users/morrm1/.terraform.d/credentials.tfrc.json
Do you want to proceed? (y/n) y
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:
/Users/mo****m1/.terraform.d/credentials.tfrc.json
Token for app.terraform.io:
Retrieved token for user mmmorris1975
---------------------------------------------------------------------------------
Success! Terraform has obtained and saved an API token.
The new API token will be used for any future Terraform command that must make
authenticated requests to app.terraform.io.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment