2023-06-23 17:19:43 +02:00
|
|
|
variable "base_name" {
|
2022-09-27 14:02:56 +02:00
|
|
|
type = string
|
|
|
|
description = "Base name of the instance group."
|
|
|
|
}
|
|
|
|
|
2023-06-23 17:19:43 +02:00
|
|
|
variable "node_group_name" {
|
|
|
|
type = string
|
|
|
|
description = "Constellation name for the node group (used for configuration and CSP-independent naming)."
|
|
|
|
}
|
|
|
|
|
2022-09-27 14:02:56 +02:00
|
|
|
variable "role" {
|
|
|
|
type = string
|
2023-12-15 10:36:58 +01:00
|
|
|
description = "Role of the instance group."
|
2023-06-23 12:08:30 +02:00
|
|
|
validation {
|
|
|
|
condition = contains(["control-plane", "worker"], var.role)
|
|
|
|
error_message = "The role has to be 'control-plane' or 'worker'."
|
|
|
|
}
|
2022-09-27 14:02:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "uid" {
|
|
|
|
type = string
|
2023-12-15 10:36:58 +01:00
|
|
|
description = "Unique Identifier (UID) of the cluster."
|
2022-09-27 14:02:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "instance_type" {
|
|
|
|
type = string
|
|
|
|
description = "Instance type for the nodes."
|
|
|
|
}
|
|
|
|
|
2023-06-30 10:53:00 +02:00
|
|
|
variable "initial_count" {
|
2022-09-27 14:02:56 +02:00
|
|
|
type = number
|
|
|
|
description = "Number of instances in the instance group."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "image_id" {
|
|
|
|
type = string
|
2023-12-15 10:36:58 +01:00
|
|
|
description = "Amazon Machine Image (AMI) ID for the cluster's nodes."
|
2022-09-27 14:02:56 +02:00
|
|
|
}
|
|
|
|
|
2022-10-21 12:24:18 +02:00
|
|
|
variable "state_disk_type" {
|
|
|
|
type = string
|
|
|
|
description = "EBS disk type for the state disk of the nodes."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "state_disk_size" {
|
2022-09-27 14:02:56 +02:00
|
|
|
type = number
|
2022-10-21 12:24:18 +02:00
|
|
|
description = "Disk size for the state disk of the nodes [GB]."
|
2022-09-27 14:02:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "target_group_arns" {
|
|
|
|
type = list(string)
|
|
|
|
description = "ARN of the target group."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "subnetwork" {
|
|
|
|
type = string
|
|
|
|
description = "Name of the subnetwork to use."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "iam_instance_profile" {
|
|
|
|
type = string
|
|
|
|
description = "IAM instance profile for the nodes."
|
|
|
|
}
|
2022-10-21 12:24:18 +02:00
|
|
|
|
|
|
|
variable "security_groups" {
|
|
|
|
type = list(string)
|
2023-12-15 10:36:58 +01:00
|
|
|
description = "List of security group IDs for an instance."
|
2022-10-21 12:24:18 +02:00
|
|
|
}
|
2022-11-26 19:44:34 +01:00
|
|
|
|
|
|
|
variable "tags" {
|
|
|
|
type = map(string)
|
2023-12-15 10:36:58 +01:00
|
|
|
description = "Tags to add to the instance group."
|
2022-11-26 19:44:34 +01:00
|
|
|
}
|
2023-06-09 15:41:02 +02:00
|
|
|
|
|
|
|
variable "enable_snp" {
|
|
|
|
type = bool
|
|
|
|
default = true
|
2023-12-15 10:36:58 +01:00
|
|
|
description = "Enable AMD SEV-SNP for the instances."
|
2023-06-09 15:41:02 +02:00
|
|
|
}
|
2023-06-23 17:19:43 +02:00
|
|
|
|
|
|
|
variable "zone" {
|
|
|
|
type = string
|
|
|
|
description = "Zone to deploy the instance group in."
|
|
|
|
}
|