-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
49 lines (42 loc) · 1.86 KB
/
variables.tf
File metadata and controls
49 lines (42 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
################################################################################
# modules/ingress: variables
#
# Installs the AWS Load Balancer Controller into the EKS cluster via
# helm_release. The controller watches for Kubernetes Ingress resources
# with `ingressClassName: alb` and provisions AWS ALBs / NLBs for them.
#
# The IRSA role for the controller is created by modules/iam/ (the
# alb_controller submodule-backed role). This module receives the role ARN
# and annotates the controller's service account.
################################################################################
variable "cluster_name" {
description = "Name of the EKS cluster. Passed to the chart as `clusterName`."
type = string
}
variable "vpc_id" {
description = "VPC ID where the cluster lives. Passed to the chart as `vpcId`."
type = string
}
variable "region" {
description = "AWS region. Passed to the chart as `region`."
type = string
}
variable "alb_controller_role_arn" {
description = "ARN of the ALB controller IRSA role. Pass the `alb_controller_role_arn` output from modules/iam/."
type = string
}
variable "namespace" {
description = "Kubernetes namespace to install the ALB controller into. Default `kube-system` (the AWS-recommended namespace for cluster infrastructure controllers)."
type = string
default = "kube-system"
}
variable "service_account_name" {
description = "Service account name for the ALB controller. Must match the SA name in the IRSA role's trust policy (var.alb_controller_service_account in modules/iam/)."
type = string
default = "aws-load-balancer-controller"
}
variable "chart_version" {
description = "Helm chart version for the AWS Load Balancer Controller. Default tracks a known-good version; override only when upgrading deliberately."
type = string
default = "1.12.0"
}