Only set confidential_instance_type if cc_technology is SEV_SNP

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-05-13 10:15:06 +02:00
parent 93fcb51e67
commit 87c3f367cd
No known key found for this signature in database
GPG Key ID: 7DD3015F3DDE4B9C

View File

@ -42,7 +42,7 @@ resource "google_compute_instance_template" "template" {
confidential_instance_config {
enable_confidential_compute = true
confidential_instance_type = var.cc_technology
confidential_instance_type = var.cc_technology == "SEV_SNP" ? "SEV_SNP" : null
}
# If SEV-SNP is used, we have to explicitly select a Milan processor, as per