hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.73k forks source link

improve documentation on how to authenticate to GCP from TFC/TFE #9917

Closed moosterhof closed 3 years ago

moosterhof commented 3 years ago

Community Note

Description

Make it clear how to authenticate to GCP from TFC/TFE.

https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started#adding-credentials

The Getting Started guide should contain the process of setting up the GCP provider from TFC/TFE, not just from the command line.

The JSON file containing credentials approach does not work from TFC/TFE, and instead the contents of this JSON need to be put in the GOOGLE_CREDENTIALS environment variable. This is documented in the full provider reference (https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference) but it's buried deep in the reference.

New or Affected Resource(s)

Potential Terraform Configuration

References

github-actions[bot] commented 3 years ago

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.