Skip to content
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

Failed to configure remote backend "gcs" #346

Closed
tasdikrahman opened this issue Aug 20, 2017 · 2 comments
Closed

Failed to configure remote backend "gcs" #346

tasdikrahman opened this issue Aug 20, 2017 · 2 comments

Comments

@tasdikrahman
Copy link

Terraform Version

$ terraform --version
Terraform v0.9.6

Affected Resource(s)

terraform backend gcs

Terraform Configuration Files

terraform {
  backend "gcs" {
    bucket = "my-terraform-state"
    path   = "testing/gcp/terraform.tfstate"
  }
}

Debug Output

$ terraform init
Initializing the backend...

Error configuring the backend "gcs": Failed to configure remote backend "gcs": google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

Please update the configuration in your Terraform files to fix this error
then run this command again.

Expected Behavior

Should have created the terraform.tfstate file which was not existing inside the already existing bucket named my-terraform-state

Actual Behavior

the state file was not created.

Steps to Reproduce

  1. terraform init

Important Factoids

Using gcs as the remote backend

@tasdikrahman
Copy link
Author

Doing a

$ gcloud auth application-default login

fixed the issue.

luis-silva pushed a commit to luis-silva/terraform-provider-google that referenced this issue May 21, 2019
Fix documentation around iam member imports
@ghost
Copy link

ghost commented Mar 31, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant