Loading...
Loading...
### Terraform Version ```shell Terraform v1.7.3 ``` ### Terraform Configuration Files Running from a gitlab CI pipeline, with the token being exported as an environment variable ```bash export TFE_TOKEN_prod__tfe_example_net=${gitlab_pipeline_masked_variable} terraform init ``` ```terraform terraform { required_version = ">= 1.7.3" required_providers { aws = { source = "hashicorp/aws" version = ">= 5.0.0" } } cloud { hostname = "prod-tfe.example.net" organization = "CTO" workspaces { name = "testworkspace" } } } ``` ### Debug Output ``` ...debug output, or link to a gist... ``` ### Expected Behavior The token for `prod-tfe.example.net` should be picked up by the environment variable `TFE_TOKEN_prod__tfe_example_net` as stated in the documentation https://developer.hashicorp.com/terraform/cli/v1.9.x/config/config-file#environment-variable-credentials ### Actual Behavior ``` ╷ │ Error: Required token could not be found │ │ Run the following command to generate a token for prod-tfe.example.net: │ terraform login prod-tfe.example.net ╵ Cleaning up project directory and file based variables 00:01 ERROR: Job failed: command terminated with exit code 1 ``` ### Steps to Reproduce ```bash 1. export TFE_TOKEN_prod__tfe_example_net=${gitlab_pipeline_masked_variable} 2. terraform init ``` ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.