Skip to content

Commit 6f954e2

Browse files
authored
internal/docs: update docs for GCP/gcloud's application default credentials (#2984)
1 parent db7a6e7 commit 6f954e2

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

internal/admin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This is a [Terraform][] configuration for the Go CDK open source project. It
44
manages GitHub ACLs, issue labels, and the module proxy buckets on GCS. To apply
55
the configuration to the project's resources, [sign into the gcloud
6-
CLI][gcloud auth login], grab a [GitHub access token][], and then do the
6+
CLI][gcloud auth application-default login], grab a [GitHub access token][], and then do the
77
following:
88

99
```bash
@@ -12,6 +12,6 @@ internal/admin$ terraform init
1212
internal/admin$ terraform apply
1313
```
1414

15-
[gcloud auth login]: https://cloud.google.com/sdk/docs/authorizing#running_gcloud_auth_login
15+
[`gcloud auth application-default login`]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
1616
[GitHub access token]: https://github.com/settings/tokens/new?scopes=repo
1717
[Terraform]: https://www.terraform.io/

internal/website/content/howto/blob/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ you would see in the [`gsutil`][] CLI.
158158
[`gsutil`]: https://cloud.google.com/storage/docs/gsutil
159159

160160
`blob.OpenBucket` will use Application Default Credentials; if you have
161-
authenticated via [`gcloud auth login`][], it will use those credentials. See
161+
authenticated via [`gcloud auth application-default login`][], it will use those credentials. See
162162
[Application Default Credentials][GCP creds] to learn about authentication
163163
alternatives, including using environment variables.
164164

165165
[GCP creds]: https://cloud.google.com/docs/authentication/production
166-
[`gcloud auth login`]: https://cloud.google.com/sdk/gcloud/reference/auth/login
166+
[`gcloud auth application-default login`]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
167167

168168
{{< goexample "gocloud.dev/blob/gcsblob.Example_openBucketFromURL" >}}
169169

internal/website/content/howto/docstore/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ Firestore URLs provide the project and collection, as well as the field that
258258
holds the document name.
259259

260260
`docstore.OpenCollection` will use Application Default Credentials; if you have
261-
authenticated via [`gcloud auth login`][], it will use those credentials. See
261+
authenticated via [`gcloud auth application-default login`][], it will use those credentials. See
262262
[Application Default Credentials][GCP creds] to learn about authentication
263263
alternatives, including using environment variables.
264264

265265
[GCP creds]: https://cloud.google.com/docs/authentication/production
266-
[`gcloud auth login`]: https://cloud.google.com/sdk/gcloud/reference/auth/login
266+
[`gcloud auth application-default login`]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
267267

268268
{{< goexample
269269
"gocloud.dev/docstore/gcpfirestore.Example_openCollectionFromURL" >}}

internal/website/content/howto/pubsub/publish.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ project ID and the topic ID.
9797
[Cloud Pub/Sub]: https://cloud.google.com/pubsub/docs/
9898

9999
`pubsub.OpenTopic` will use Application Default Credentials; if you have
100-
authenticated via [`gcloud auth login`][], it will use those credentials. See
100+
authenticated via [`gcloud auth application-default login`][], it will use those credentials. See
101101
[Application Default Credentials][GCP creds] to learn about authentication
102102
alternatives, including using environment variables.
103103

104104
[GCP creds]: https://cloud.google.com/docs/authentication/production
105-
[`gcloud auth login`]: https://cloud.google.com/sdk/gcloud/reference/auth/login
105+
[`gcloud auth application-default login`]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
106106

107107
{{< goexample "gocloud.dev/pubsub/gcppubsub.Example_openTopicFromURL" >}}
108108

internal/website/content/howto/pubsub/subscribe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ The URLs use the project ID and the subscription ID.
106106
[Cloud Pub/Sub]: https://cloud.google.com/pubsub/docs/
107107

108108
`pubsub.OpenSubscription` will use Application Default Credentials; if you have
109-
authenticated via [`gcloud auth login`][], it will use those credentials. See
109+
authenticated via [`gcloud auth application-default login`][], it will use those credentials. See
110110
[Application Default Credentials][GCP creds] to learn about authentication
111111
alternatives, including using environment variables.
112112

113113
[GCP creds]: https://cloud.google.com/docs/authentication/production
114-
[`gcloud auth login`]: https://cloud.google.com/sdk/gcloud/reference/auth/login
114+
[`gcloud auth application-default login`]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
115115

116116
{{< goexample "gocloud.dev/pubsub/gcppubsub.Example_openSubscriptionFromURL" >}}
117117

internal/website/content/howto/runtimevar/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ the `runtimevar.OpenVariable` function as shown in the example below.
126126
[GCP Runtime Configurator]: https://cloud.google.com/deployment-manager/runtime-configurator/
127127

128128
`runtimevar.OpenVariable` will use Application Default Credentials; if you have
129-
authenticated via [`gcloud auth login`][], it will use those credentials. See
129+
authenticated via [`gcloud auth application-default login`][], it will use those credentials. See
130130
[Application Default Credentials][GCP creds] to learn about authentication
131131
alternatives, including using environment variables.
132132

133133
[GCP creds]: https://cloud.google.com/docs/authentication/production
134-
[`gcloud auth login`]: https://cloud.google.com/sdk/gcloud/reference/auth/login
134+
[`gcloud auth application-default login`]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
135135

136136
{{< goexample
137137
"gocloud.dev/runtimevar/gcpruntimeconfig.Example_openVariableFromURL" >}}
@@ -153,12 +153,12 @@ the `runtimevar.OpenVariable` function as shown in the example below.
153153
[GCP Secret Manager]: https://cloud.google.com/secret-manager
154154

155155
`runtimevar.OpenVariable` will use Application Default Credentials; if you have
156-
authenticated via [`gcloud auth login`][], it will use those credentials. See
156+
authenticated via [`gcloud auth application-default login`][], it will use those credentials. See
157157
[Application Default Credentials][GCP creds] to learn about authentication
158158
alternatives, including using environment variables.
159159

160160
[GCP creds]: https://cloud.google.com/docs/authentication/production
161-
[`gcloud auth login`]: https://cloud.google.com/sdk/gcloud/reference/auth/login
161+
[`gcloud auth application-default login`]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
162162

163163
{{< goexample
164164
"gocloud.dev/runtimevar/gcpsecretmanager.Example_openVariableFromURL" >}}

internal/website/content/howto/secrets/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ similar to [key resource IDs][].
167167
[key resource IDs]: https://cloud.google.com/kms/docs/object-hierarchy#key
168168

169169
`secrets.OpenKeeper` will use Application Default Credentials; if you have
170-
authenticated via [`gcloud auth login`][], it will use those credentials. See
170+
authenticated via [`gcloud auth application-default login`][], it will use those credentials. See
171171
[Application Default Credentials][GCP creds] to learn about authentication
172172
alternatives, including using environment variables.
173173

174174
[GCP creds]: https://cloud.google.com/docs/authentication/production
175-
[`gcloud auth login`]: https://cloud.google.com/sdk/gcloud/reference/auth/login
175+
[`gcloud auth application-default login`]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
176176

177177
{{< goexample "gocloud.dev/secrets/gcpkms.Example_openFromURL" >}}
178178

0 commit comments

Comments
 (0)