Skip to content

Commit 7e3aa3a

Browse files
manually add changes (#4446) (#2917)
Co-authored-by: Seth Vargo <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Seth Vargo <[email protected]>
1 parent d510092 commit 7e3aa3a

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.changelog/4446.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
serviceaccount: loosened restrictions on `account_id` for datasource `google_service_account`
3+
```

google-beta/data_source_google_service_account.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ func dataSourceGoogleServiceAccount() *schema.Resource {
1212
Read: dataSourceGoogleServiceAccountRead,
1313
Schema: map[string]*schema.Schema{
1414
"account_id": {
15-
Type: schema.TypeString,
16-
Required: true,
17-
ValidateFunc: validateRFC1035Name(6, 30),
15+
Type: schema.TypeString,
16+
Required: true,
1817
},
1918
"project": {
2019
Type: schema.TypeString,

website/docs/d/service_account.html.markdown

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,15 @@ resource "kubernetes_secret" "google-application-credentials" {
4444

4545
The following arguments are supported:
4646

47-
* `account_id` - (Required) The Service account id. (This is the part of the service account's email field that comes before the @ symbol.)
47+
* `account_id` - (Required) The Google service account ID. This be one of:
48+
49+
* The name of the service account within the project (e.g. `my-service`)
50+
51+
* The fully-qualified path to a service account resource (e.g.
52+
`projects/my-project/serviceAccounts/...`)
53+
54+
* The email address of the service account (e.g.
55+
4856

4957
* `project` - (Optional) The ID of the project that the service account is present in.
5058
Defaults to the provider project configuration.

0 commit comments

Comments
 (0)