github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/avd_docs/google/compute/AVD-GCP-0037/Terraform.md (about)

     1  
     2  Reference a managed key rather than include the key in raw format.
     3  
     4  ```hcl
     5   resource "google_compute_disk" "good_example" {
     6   	disk_encryption_key {
     7   		kms_key_self_link = google_kms_crypto_key.my_crypto_key.id
     8   	}
     9   }
    10   
    11  ```
    12  
    13  #### Remediation Links
    14   - https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_disk#kms_key_self_link
    15