• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

GCP 400 Bad Request

March 15, 2021

After logging in, I tried to run Terraform in GCP and received this error:

oauth2: cannot fetch token: 400 Bad Request

oauth2: cannot fetch token: 400 Bad Request

Here’s the fix. Login using application-default.

gcloud auth application-default login

gcloud auth application-default login

You can then Terraform.

terraform apply

terraform apply

Filed Under: Cloud Tagged With: 400, bad, fetch, gcp, login, oauth2, request, token

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023