Skip to content

Commit b06e7fe

Browse files
Fix client full example to use basename of kms config (#12418) (#8825)
[upstream:11a91a6dbbd6c953625db2ec46c6ba58defc6ee6] Signed-off-by: Modular Magician <[email protected]>
1 parent ab3ebdf commit b06e7fe

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.changelog/12418.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
integrations: fixed example in docs to reflect usage of basename instead of full name in `cloud_kms_config`
3+
```

google-beta/services/integrations/resource_integrations_client_generated_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ resource "google_integrations_client" "example" {
120120
run_as_service_account = google_service_account.service_account.email
121121
cloud_kms_config {
122122
kms_location = "us-east1"
123-
kms_ring = google_kms_key_ring.keyring.id
124-
key = google_kms_crypto_key.cryptokey.id
125-
key_version = google_kms_crypto_key_version.test_key.id
123+
kms_ring = basename(google_kms_key_ring.keyring.id)
124+
key = basename(google_kms_crypto_key.cryptokey.id)
125+
key_version = basename(google_kms_crypto_key_version.test_key.id)
126126
kms_project_id = data.google_project.test_project.project_id
127127
}
128128
}

website/docs/r/integrations_client.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ resource "google_integrations_client" "example" {
8080
run_as_service_account = google_service_account.service_account.email
8181
cloud_kms_config {
8282
kms_location = "us-east1"
83-
kms_ring = google_kms_key_ring.keyring.id
84-
key = google_kms_crypto_key.cryptokey.id
85-
key_version = google_kms_crypto_key_version.test_key.id
83+
kms_ring = basename(google_kms_key_ring.keyring.id)
84+
key = basename(google_kms_crypto_key.cryptokey.id)
85+
key_version = basename(google_kms_crypto_key_version.test_key.id)
8686
kms_project_id = data.google_project.test_project.project_id
8787
}
8888
}

0 commit comments

Comments
 (0)