terraform: enable creation of SEV-SNP VMs on GCP

This commit is contained in:
Moritz Sanft 2024-04-04 16:30:35 +02:00
parent f189aa186f
commit 667e04193d
No known key found for this signature in database
GPG key ID: 335D28368B1DA615
8 changed files with 91 additions and 23 deletions

View file

@ -60,3 +60,12 @@ variable "zone" {
type = string
description = "GCP zone to deploy the cluster in."
}
variable "cc_technology" {
type = string
description = "The confidential computing technology to use for the nodes. One of `SEV`, `SEV_SNP`."
validation {
condition = contains(["SEV", "SEV_SNP"], var.cc_technology)
error_message = "The confidential computing technology has to be 'SEV' or 'SEV_SNP'."
}
}