mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
terraform: only set confidential_instance_type
if cc_technology
is SEV_SNP
(#3085)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
8e3cf5a270
commit
8219005587
@ -42,7 +42,7 @@ resource "google_compute_instance_template" "template" {
|
|||||||
|
|
||||||
confidential_instance_config {
|
confidential_instance_config {
|
||||||
enable_confidential_compute = true
|
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
|
# If SEV-SNP is used, we have to explicitly select a Milan processor, as per
|
||||||
|
Loading…
Reference in New Issue
Block a user