Skip to content

Commit

Permalink
Add explanation for --google_default_credentials
Browse files Browse the repository at this point in the history
bazel supports application default credentials to access GCS bucket too.

Closes bazelbuild#8297.

PiperOrigin-RevId: 249233903
  • Loading branch information
atetubou authored and copybara-github committed May 21, 2019
1 parent a63d816 commit 6f52cf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions site/docs/remote-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ to/from your GCS bucket.
* Pass the following URL to Bazel by using the flag:
`--remote_cache=https://storage.googleapis.com/bucket-name`
where `bucket-name` is the name of your storage bucket.
* Pass the authentication key using the flag: `--google_credentials=/path/to/your/secret-key.json`.
* Pass the authentication key using the flag: `--google_credentials=/path/to/your/secret-key.json`, or
`--google_default_credentials` to use [Application Default Credentials].

5. You can configure Cloud Storage to automatically delete old files. To do so, see
[Managing Object Lifecycles](https://cloud.google.com/storage/docs/managing-lifecycles).
Expand Down Expand Up @@ -393,4 +394,4 @@ watch [issue #4558] for updates.
[Buildfarm]: https://github.com/bazelbuild/bazel-buildfarm
[BuildGrid]: https://gitlab.com/BuildGrid/buildgrid
[issue #4558]: https://github.com/bazelbuild/bazel/issues/4558

[Application Default Credentials]: https://cloud.google.com/docs/authentication/production

0 comments on commit 6f52cf3

Please sign in to comment.