Skip to content

Commit e8c0d11

Browse files
Update Google service account docs to display correct public key type (#3787) (#2312)
Signed-off-by: Modular Magician <[email protected]>
1 parent 5e4db15 commit e8c0d11

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.changelog/3787.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```release-note:none
2+
```

website/docs/d/service_account_key.html.markdown

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ description: |-
77
Get a Google Cloud Platform service account Public Key
88
---
99

10-
# google\_service\_account\_key
10+
# google_service_account_key
1111

1212
Get service account public key. For more information, see [the official documentation](https://cloud.google.com/iam/docs/creating-managing-service-account-keys) and [API](https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts.keys/get).
1313

14-
1514
## Example Usage
1615

1716
```hcl
@@ -34,13 +33,13 @@ data "google_service_account_key" "mykey" {
3433
The following arguments are supported:
3534

3635
* `name` - (Required) The name of the service account key. This must have format
37-
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{KEYID}`, where `{ACCOUNT}`
38-
is the email address or unique id of the service account.
36+
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{KEYID}`, where `{ACCOUNT}`
37+
is the email address or unique id of the service account.
3938

4039
* `project` - (Optional) The ID of the project that the service account will be created in.
41-
Defaults to the provider project configuration.
40+
Defaults to the provider project configuration.
4241

43-
* `public_key_type` (Optional) The output format of the public key requested. X509_PEM is the default output format.
42+
* `public_key_type` (Optional) The output format of the public key requested. TYPE_X509_PEM_FILE is the default output format.
4443

4544
## Attributes Reference
4645

website/docs/r/google_service_account_key.html.markdown

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ description: |-
77
Allows management of a Google Cloud Platform service account Key Pair
88
---
99

10-
# google\_service\_account\_key
10+
# google_service_account_key
1111

1212
Creates and manages service account key-pairs, which allow the user to establish identity of a service account outside of GCP. For more information, see [the official documentation](https://cloud.google.com/iam/docs/creating-managing-service-account-keys) and [API](https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts.keys).
1313

14-
1514
## Example Usage, creating a new Key Pair
1615

1716
```hcl
@@ -61,7 +60,7 @@ Valid values are listed at
6160
[ServiceAccountPrivateKeyType](https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts.keys#ServiceAccountKeyAlgorithm)
6261
(only used on create)
6362

64-
* `public_key_type` (Optional) The output format of the public key requested. X509_PEM is the default output format.
63+
* `public_key_type` (Optional) The output format of the public key requested. TYPE_X509_PEM_FILE is the default output format.
6564

6665
* `private_key_type` (Optional) The output format of the private key. TYPE_GOOGLE_CREDENTIALS_FILE is the default output format.
6766

@@ -82,4 +81,3 @@ service account keys through the CLI or web console. This is only populated when
8281

8382
* `valid_before` - The key can be used before this timestamp.
8483
A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
85-

0 commit comments

Comments
 (0)