Skip to content

Commit

Permalink
add disk encyption key to the google_compute_instance_template
Browse files Browse the repository at this point in the history
  • Loading branch information
rune92 committed Dec 6, 2024
1 parent d307feb commit b582ffe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/compute-vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ resource "google_compute_instance_template" "default" {
disk_type = var.boot_disk.initialize_params.type
resource_manager_tags = var.tag_bindings
source_image = var.boot_disk.initialize_params.image

disk_encryption_key {
kms_key_self_link = var.encryption.kms_key_self_link
}
}

dynamic "confidential_instance_config" {
Expand Down

0 comments on commit b582ffe

Please sign in to comment.