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

Revert "bugfix improve provider credentials docs. Fixes hashicorp#21471" #9391

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changelog/13142.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```release-note:none
```
14 changes: 2 additions & 12 deletions website/docs/guides/provider_reference.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ impersonated service account regardless of the primary identity in use.

## Authentication Configuration

* `credentials` - (Optional) Either the path (as returned by the [file terraform function])
to or the contents of a [service account key file] in JSON format. You can
* `credentials` - (Optional) Either the path to or the contents of a
[service account key file] in JSON format. You can
[manage key files using the Cloud Console]. Your service account key file is
used to complete a two-legged OAuth 2.0 flow to obtain access tokens to
authenticate with the GCP API as needed; Terraform will use it to reauthenticate
Expand All @@ -136,15 +136,6 @@ by precedence.
the path of your service account key file in the
`GOOGLE_APPLICATION_CREDENTIALS` environment variable, or configure
authentication through one of the following;

```hcl
provider "google" {
alias = "other"
project = var.my_other_project_id
region = var.region
credentials = file(pathexpand(var.gcloud_other_dac_file))
}
```

* If you're running Terraform from a GCE instance, default credentials
are automatically available. See
Expand Down Expand Up @@ -423,4 +414,3 @@ See [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#field.user-agent) for form
[gcloud adc]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
[service accounts]: https://cloud.google.com/docs/authentication/getting-started
[scopes]: https://developers.google.com/identity/protocols/googlescopes
[file terraform function]: https://developer.hashicorp.com/terraform/language/functions/file