You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to get terraform output running after changing the state from local filesystem to remote state. terraform plan and terraform apply works well.
We moved our backend.tf in the directory from where we execute terraform commands, and it works well. However we don't want to keep two copies of backend.tf in our codebase.
We recently changed the backend to GCS. Soon after that, terraform output failed. terraform plan and terraform apply works well since it accepts path the terraform configuration.
The text was updated successfully, but these errors were encountered:
Hi,
We are trying to get
terraform output
running after changing the state from local filesystem to remote state.terraform plan
andterraform apply
works well.We moved our backend.tf in the directory from where we execute terraform commands, and it works well. However we don't want to keep two copies of backend.tf in our codebase.
Terraform Version
Terraform v0.9.11
Terraform Configuration Files
Debug Output
https://gist.github.com/GarimaSharma/bb188c6d4d0cb4fdb29298691fd02449
Directory Tree For Error
├── README.md
├── etc
│ └── terraform
│ ├── backend.tf
│ ├── buckets.tf
│ ├── https_whitelist.tf
│ ├── logger.tf
│ ├── main.tf
│ ├── networks.tf
│ └── outputs.tf
Directory Tree For Success
├── backend.tf
├── README.md
├── etc
│ └── terraform
│ ├── backend.tf
│ ├── buckets.tf
│ ├── https_whitelist.tf
│ ├── logger.tf
│ ├── main.tf
│ ├── networks.tf
│ └── outputs.tf
Expected Behavior
terraform output
takes location of backend.tf (or the whole terraform configuration directory)Actual Behavior
terraform init
terraform output -state=.terraform/terraform.tfstate
also ends up in complaining forterraform init
terraform output -state=gs://some-bucket/terraform.tfstate
also ends up in complaining forterraform init
Steps to Reproduce
terraform output
ORImportant Factoids
terraform plan
andterraform apply
works well since it accepts path the terraform configuration.The text was updated successfully, but these errors were encountered: