-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
75 lines (63 loc) · 2.32 KB
/
variables.tf
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
variable "k8s_cluster_type" {
description = "Can be set to `vanilla` or `eks`. If set to `eks`, the Kubernetes cluster will be assumed to be run on EKS which will make sure that the AWS IAM Service integration works as supposed to."
type = string
default = "vanilla"
validation {
condition = contains(["vanilla", "eks"], var.k8s_cluster_type)
error_message = "Allowed values for k8s_cluster_type are \"vanilla\" or \"eks\"."
}
}
variable "k8s_cluster_name" {
description = "Name of the Kubernetes cluster. This string is used to contruct the AWS IAM permissions and roles. If targeting EKS, the corresponsing managed cluster name must match as well."
type = string
}
variable "k8s_namespace" {
description = "Kubernetes namespace to deploy the AWS Load Balancer Controller into."
type = string
default = "default"
}
variable "k8s_replicas" {
description = "Amount of replicas to be created."
type = number
default = 1
}
variable "k8s_pod_annotations" {
description = "Additional annotations to be added to the Pods."
type = map(string)
default = {}
}
variable "k8s_pod_labels" {
description = "Additional labels to be added to the Pods."
type = map(string)
default = {}
}
variable "aws_iam_path_prefix" {
description = "Prefix to be used for all AWS IAM objects."
type = string
default = ""
}
variable "aws_vpc_id" {
description = "ID of the Virtual Private Network to utilize. Can be ommited if targeting EKS."
type = string
default = null
}
variable "aws_region_name" {
description = "ID of the Virtual Private Network to utilize. Can be ommited if targeting EKS."
type = string
default = null
}
variable "aws_resource_name_prefix" {
description = "A string to prefix any AWS resources created. This does not apply to K8s resources"
type = string
default = "k8s-"
}
variable "aws_tags" {
description = "Common AWS tags to be applied to all AWS objects being created."
type = map(string)
default = {}
}
variable "aws_load_balancer_controller_version" {
description = "The AWS Load Balancer Controller version to use. See https://github.com/kubernetes-sigs/aws-load-balancer-controller/releases for available versions"
type = string
default = "2.1.1"
}