diff --git a/third_party/terraform/data_sources/data_source_google_kms_crypto_key_version.go b/third_party/terraform/data_sources/data_source_google_kms_crypto_key_version.go index cee92f025381..af279db92714 100644 --- a/third_party/terraform/data_sources/data_source_google_kms_crypto_key_version.go +++ b/third_party/terraform/data_sources/data_source_google_kms_crypto_key_version.go @@ -117,7 +117,7 @@ func dataSourceGoogleKmsCryptoKeyVersionRead(d *schema.ResourceData, meta interf return fmt.Errorf("Error reading CryptoKeyVersion public key: %s", err) } } - d.SetId(fmt.Sprintf("//cloudkms.googleapis.com/%s/cryptoKeyVersions/%d", d.Get("crypto_key"), d.Get("version"))) + d.SetId(fmt.Sprintf("//cloudkms.googleapis.com/v1/%s/cryptoKeyVersions/%d", d.Get("crypto_key"), d.Get("version"))) return nil } diff --git a/third_party/terraform/website/docs/d/google_kms_crypto_key_version.html.markdown b/third_party/terraform/website/docs/d/google_kms_crypto_key_version.html.markdown index db8fd091039b..7c37e240aad3 100644 --- a/third_party/terraform/website/docs/d/google_kms_crypto_key_version.html.markdown +++ b/third_party/terraform/website/docs/d/google_kms_crypto_key_version.html.markdown @@ -47,6 +47,8 @@ The following arguments are supported: In addition to the arguments listed above, the following computed attributes are exported: +* `id` - an identifier for the resource with format `//cloudkms.googleapis.com/v1/{{crypto_key}}/cryptoKeyVersions/{{version}}` + * `state` - The current state of the CryptoKeyVersion. See the [state reference](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion.CryptoKeyVersionState) for possible outputs. * `protection_level` - The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion. See the [protection_level reference](https://cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel) for possible outputs.