2022-10-06 05:51:26 -04:00
|
|
|
variable "name" {
|
|
|
|
type = string
|
|
|
|
description = "Base name of the cluster."
|
|
|
|
}
|
|
|
|
|
2023-06-22 10:53:40 -04:00
|
|
|
variable "node_groups" {
|
|
|
|
type = map(object({
|
2023-06-30 04:53:00 -04:00
|
|
|
role = string
|
|
|
|
initial_count = optional(number)
|
|
|
|
instance_type = string
|
|
|
|
disk_size = number
|
|
|
|
disk_type = string
|
|
|
|
zones = optional(list(string))
|
2023-06-22 10:53:40 -04:00
|
|
|
}))
|
|
|
|
description = "A map of node group names to node group configurations."
|
|
|
|
validation {
|
|
|
|
condition = can([for group in var.node_groups : group.role == "control-plane" || group.role == "worker"])
|
|
|
|
error_message = "The role has to be 'control-plane' or 'worker'."
|
|
|
|
}
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "location" {
|
|
|
|
type = string
|
|
|
|
description = "The Azure location to deploy the cluster in."
|
|
|
|
}
|
|
|
|
|
2023-06-22 10:53:40 -04:00
|
|
|
variable "image_id" {
|
2022-10-06 05:51:26 -04:00
|
|
|
type = string
|
2023-06-22 10:53:40 -04:00
|
|
|
description = "The image to use for the cluster nodes."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
2023-06-22 10:53:40 -04:00
|
|
|
variable "create_maa" {
|
|
|
|
type = bool
|
|
|
|
default = false
|
|
|
|
description = "Whether to create a Microsoft Azure attestation provider."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
2023-06-22 10:53:40 -04:00
|
|
|
variable "debug" {
|
|
|
|
type = bool
|
|
|
|
default = false
|
|
|
|
description = "Enable debug mode. This opens up a debugd port that can be used to deploy a custom bootstrapper."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "confidential_vm" {
|
|
|
|
type = bool
|
|
|
|
default = true
|
|
|
|
description = "Whether to deploy the cluster nodes as confidential VMs."
|
|
|
|
}
|
|
|
|
|
2022-10-19 07:10:15 -04:00
|
|
|
variable "secure_boot" {
|
|
|
|
type = bool
|
|
|
|
default = false
|
|
|
|
description = "Whether to deploy the cluster nodes with secure boot."
|
|
|
|
}
|
|
|
|
|
2023-06-22 10:53:40 -04:00
|
|
|
variable "resource_group" {
|
|
|
|
type = string
|
|
|
|
description = "The name of the Azure resource group to create the Constellation cluster in."
|
2023-03-20 08:33:04 -04:00
|
|
|
}
|
2023-06-22 10:53:40 -04:00
|
|
|
variable "user_assigned_identity" {
|
|
|
|
type = string
|
|
|
|
description = "The name of the user assigned identity to attache to the nodes of the cluster."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|