mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-03-04 04:39:29 -05:00

* init * migration working * make tf variables with default value optional in go through ptr type * fix CI build * pr feedback * add azure targets tf * skip migration for empty targets * make instance_count optional * change role naming to dashed + add validation * make node_group.zones optional * Update cli/internal/terraform/terraform/azure/main.tf Co-authored-by: Malte Poll <1780588+malt3@users.noreply.github.com> * malte feedback --------- Co-authored-by: Malte Poll <1780588+malt3@users.noreply.github.com>
64 lines
1.7 KiB
HCL
64 lines
1.7 KiB
HCL
variable "name" {
|
|
type = string
|
|
description = "Base name of the cluster."
|
|
}
|
|
|
|
variable "node_groups" {
|
|
type = map(object({
|
|
role = string
|
|
instance_count = optional(number)
|
|
instance_type = string
|
|
disk_size = number
|
|
disk_type = string
|
|
zones = optional(list(string))
|
|
}))
|
|
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'."
|
|
}
|
|
}
|
|
|
|
variable "location" {
|
|
type = string
|
|
description = "The Azure location to deploy the cluster in."
|
|
}
|
|
|
|
variable "image_id" {
|
|
type = string
|
|
description = "The image to use for the cluster nodes."
|
|
}
|
|
|
|
variable "create_maa" {
|
|
type = bool
|
|
default = false
|
|
description = "Whether to create a Microsoft Azure attestation provider."
|
|
}
|
|
|
|
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."
|
|
}
|
|
|
|
variable "confidential_vm" {
|
|
type = bool
|
|
default = true
|
|
description = "Whether to deploy the cluster nodes as confidential VMs."
|
|
}
|
|
|
|
variable "secure_boot" {
|
|
type = bool
|
|
default = false
|
|
description = "Whether to deploy the cluster nodes with secure boot."
|
|
}
|
|
|
|
variable "resource_group" {
|
|
type = string
|
|
description = "The name of the Azure resource group to create the Constellation cluster in."
|
|
}
|
|
variable "user_assigned_identity" {
|
|
type = string
|
|
description = "The name of the user assigned identity to attache to the nodes of the cluster."
|
|
}
|