-
Notifications
You must be signed in to change notification settings - Fork 41
/
variables.tf
117 lines (95 loc) · 2.91 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// ----------------------------------------------------------------------------
// Required Variables
// ----------------------------------------------------------------------------
variable "region" {
description = "AWS region code for creating resources."
type = string
}
variable "cluster_version" {
description = "Kubernetes version to use for the EKS cluster."
type = string
}
variable "jx_git_url" {
description = "URL for the Jenins X cluster git repository"
type = string
}
variable "jx_bot_username" {
description = "Bot username used to interact with the Jenkins X cluster git repository"
type = string
}
variable "jx_bot_token" {
description = "Bot token used to interact with the Jenkins X cluster git repository"
type = string
}
// ----------------------------------------------------------------------------
// Optional Variables
// ----------------------------------------------------------------------------
variable "cluster_name" {
description = "Name of the Kubernetes cluster to create"
type = string
default = ""
}
variable "ami_type" {
description = "ami type for the node group worker intances"
type = string
default = "AL2023_x86_64_STANDARD"
}
variable "node_machine_type" {
type = string
default = "m6i.large"
}
variable "force_destroy" {
description = "Flag to determine whether storage buckets get forcefully destroyed. If set to false, empty the bucket first in the aws s3 console, else terraform destroy will fail with BucketNotEmpty error"
type = bool
default = false
}
variable "nginx_chart_version" {
type = string
description = "nginx chart version"
default = "3.12.0"
}
variable "use_asm" {
description = "Flag to specify if resources for AWS Secret MAanger should be created instead of vault resources"
type = bool
default = false
}
# VPC
variable "vpc_name" {
type = string
default = "tf-vpc-eks"
}
variable "public_subnets" {
type = list(string)
default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
variable "private_subnets" {
type = list(string)
default = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"]
}
variable "vpc_cidr_block" {
type = string
default = "10.0.0.0/16"
}
variable "enable_nat_gateway" {
type = bool
default = true
}
variable "single_nat_gateway" {
type = bool
default = true
}
variable "cluster_in_private_subnet" {
description = "Flag to enable installation of cluster on private subnets"
type = bool
default = true
}
variable "cluster_endpoint_private_access" {
description = "Indicates whether or not the Amazon EKS private API server endpoint is enabled."
type = bool
default = false
}
variable "cluster_endpoint_public_access" {
description = "Indicates whether or not the Amazon EKS public API server endpoint is enabled."
type = bool
default = true
}