-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 Cloud authentication token variable not working #21965
Comments
I think the documentation might be incorrect, as #18642 seems to have removed the support for |
Hi @marcincuber! The The reason we are phasing out the The credentials "app.terraform.io" {
# host-specific credentials
}
credentials "tfe.example.com" {
# host-specific credentials
} The environment variable remains supported on the provider for now because it is lagging behind on the deprecation process, but we'd recommend using the credentials file mechanism in all cases moving forward since that is the most robust mechanism and the one that will continue to be supported. The legacy We hope this helps clarify the situation! Since the |
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. |
Terraform Version
Terraform Configuration Files
Crash Output
Expected Behavior
After exporting TFE_TOKEN I should be able to pull the terraform backend from terraform cloud.
Actual Behavior
Getting an error which suggests to me that the environment variable TFE_TOKEN doesn't work.
Steps to Reproduce
Additional Context
Docs -> https://www.terraform.io/docs/providers/tfe/index.html suggest that environment variable TFE_TOKEN should work just fine and terraform should be able to authenticate just fine.
The text was updated successfully, but these errors were encountered: