@thomas.solbjor her er "import" av tofu fra ditt repo med justeringer for å tilpasse patterns her. Også minimalisert til å kun opprette cluster, ingen managed services som postgres etc. Ta en titt. Co-authored-by: Danijel Simeunovic <danijel.simeunovic@fortedigital.com> Reviewed-on: #15 Reviewed-by: Danijel Simeunovic <danijel.simeunovic@fortedigital.com> Co-authored-by: Ghost <> Co-committed-by: Ghost <>
62 lines
1.9 KiB
HCL
62 lines
1.9 KiB
HCL
# ─── Region ──────────────────────────────────────────────────────────
|
||
|
||
variable "region" {
|
||
description = "AWS region (e.g., eu-west-1, us-east-1)"
|
||
type = string
|
||
}
|
||
|
||
variable "prefix" {
|
||
description = "Prefix for resource names (e.g., clst-dev)"
|
||
type = string
|
||
}
|
||
|
||
# ─── Networking ───────────────────────────────────────────────────────
|
||
|
||
variable "vpc_cidr" {
|
||
description = "VPC CIDR block"
|
||
type = string
|
||
default = "10.100.0.0/16"
|
||
}
|
||
|
||
variable "availability_zones" {
|
||
description = "List of AZs for subnets (2–3 recommended)"
|
||
type = list(string)
|
||
}
|
||
|
||
# ─── EKS Cluster ─────────────────────────────────────────────────────
|
||
|
||
variable "node_instance_type" {
|
||
description = "EKS node instance type (e.g., t3.medium, m5.xlarge)"
|
||
type = string
|
||
}
|
||
|
||
variable "node_count" {
|
||
description = "Desired number of EKS worker nodes"
|
||
type = number
|
||
}
|
||
|
||
variable "node_min_count" {
|
||
description = "Minimum number of EKS worker nodes"
|
||
type = number
|
||
default = 1
|
||
}
|
||
|
||
variable "node_max_count" {
|
||
description = "Maximum number of EKS worker nodes"
|
||
type = number
|
||
}
|
||
|
||
variable "kubernetes_version" {
|
||
description = "Kubernetes version for EKS (e.g., \"1.30\")"
|
||
type = string
|
||
default = "1.30"
|
||
}
|
||
|
||
# ─── Tags ─────────────────────────────────────────────────────────────
|
||
|
||
variable "tags" {
|
||
description = "Tags applied to all resources"
|
||
type = map(string)
|
||
default = {}
|
||
}
|