mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-30 18:06:14 -05:00
82 lines
2.3 KiB
HCL
82 lines
2.3 KiB
HCL
variable "name" {
|
|
type = string
|
|
description = "Name of your Constellation"
|
|
validation {
|
|
condition = length(var.name) <= 10
|
|
error_message = "The length of the name of the Constellation must be <= 10 characters"
|
|
}
|
|
validation {
|
|
condition = var.name == lower(var.name)
|
|
error_message = "The name of the Constellation must be in lowercase"
|
|
}
|
|
}
|
|
|
|
variable "node_groups" {
|
|
type = map(object({
|
|
role = string
|
|
initial_count = optional(number)
|
|
instance_type = string
|
|
disk_size = number
|
|
disk_type = string
|
|
zone = 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 "iam_instance_profile_worker_nodes" {
|
|
type = string
|
|
description = "Name of the IAM instance profile for worker nodes"
|
|
}
|
|
|
|
variable "iam_instance_profile_control_plane" {
|
|
type = string
|
|
description = "Name of the IAM instance profile for control plane nodes"
|
|
}
|
|
|
|
variable "ami" {
|
|
type = string
|
|
description = "AMI ID"
|
|
validation {
|
|
condition = length(var.ami) > 4 && substr(var.ami, 0, 4) == "ami-"
|
|
error_message = "The image_id value must be a valid AMI id, starting with \"ami-\"."
|
|
}
|
|
}
|
|
|
|
variable "region" {
|
|
type = string
|
|
description = "The AWS region to create the cluster in"
|
|
}
|
|
|
|
variable "zone" {
|
|
type = string
|
|
description = "The AWS availability zone name to create the cluster in"
|
|
}
|
|
|
|
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 "enable_snp" {
|
|
type = bool
|
|
default = true
|
|
description = "Enable AMD SEV SNP. Setting this to true sets the cpu-option AmdSevSnp to enable."
|
|
}
|
|
|
|
variable "custom_endpoint" {
|
|
type = string
|
|
default = ""
|
|
description = "Custom endpoint to use for the Kubernetes apiserver. If not set, the default endpoint will be used."
|
|
}
|
|
|
|
variable "internal_load_balancer" {
|
|
type = bool
|
|
default = false
|
|
description = "Use an internal load balancer."
|
|
}
|