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

@ -99,3 +99,12 @@ variable "custom_endpoint" {
type = string
description = "Custom endpoint to use for the Kubernetes API server. If not set, the default endpoint will be used."
}
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'."
}
}