Skip to content

Commit

Permalink
terraform: only set confidential_instance_type if cc_technology i…
Browse files Browse the repository at this point in the history
…s `SEV_SNP` (#3085)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
  • Loading branch information
daniel-weisse committed May 14, 2024
1 parent 8e3cf5a commit 8219005
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8219005

Please sign in to comment.