Skip to content

Commit

Permalink
Fix TestAccComputeSnapshot_encryptionCMEK (#12663)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyama1 authored Jan 3, 2025
1 parent 8dbff06 commit 5ad8bc3
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ data "google_compute_image" "my_image" {
}
resource "google_service_account" "test" {
account_id = "%s"
display_name = "KMS Ops Account"
account_id = "%s"
display_name = "KMS Ops Account"
}
resource "google_kms_crypto_key_iam_member" "example-key" {
Expand All @@ -117,19 +117,20 @@ resource "google_compute_disk" "foobar" {
zone = "us-central1-a"
disk_encryption_key {
kms_key_self_link = "%s"
kms_key_service_account = google_service_account.test.email
kms_key_self_link = "%s"
kms_key_service_account = google_service_account.test.email
}
depends_on = [google_kms_crypto_key_iam_member.example-key]
}
resource "google_compute_snapshot" "foobar" {
name = "%s"
source_disk = google_compute_disk.foobar.name
zone = "us-central1-a"
snapshot_encryption_key {
kms_key_self_link = "%s"
kms_key_service_account = google_service_account.test.email
kms_key_self_link = "%s"
kms_key_service_account = google_service_account.test.email
}
}
`, diskName, kmsKeyName, kmsKeyName, diskName, snapshotName, kmsKeyName)
`, diskName, kmsKeyName, diskName, kmsKeyName, snapshotName, kmsKeyName)
}

0 comments on commit 5ad8bc3

Please sign in to comment.