-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
00-variables.tf
155 lines (132 loc) · 4.42 KB
/
00-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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# AWS Infrastructure Variables
variable "region" {
description = "The AWS region in which the infrastructure will be deployed"
type = string
default = "eu-west-1"
}
# Virtual Private Cloud Variables
variable "vpc_1_cidr" {
description = "The IP range for the Virtual Private Cloud (VPC) that will be created"
type = string
default = "10.0.0.0/16"
}
# Private Subnet Variables
variable "private_subnet_1a_cidr" {
description = "The IP range for the first private subnet that will be created within the VPC"
type = string
default = "10.0.0.0/19"
}
variable "private_subnet_1b_cidr" {
description = "The IP range for the second private subnet that will be created within the VPC"
type = string
default = "10.0.32.0/19"
}
# Public Subnet Variables
variable "public_subnet_1a_cidr" {
description = "The IP range for the first public subnet that will be created within the VPC"
type = string
default = "10.0.64.0/19"
}
variable "public_subnet_1b_cidr" {
description = "The IP range for the second public subnet that will be created within the VPC"
type = string
default = "10.0.96.0/19"
}
# Route Variables
variable "private_route_1_cidr" {
description = "The IP range for the private route that will be created within the VPC"
type = string
default = "0.0.0.0/0"
}
variable "public_route_1_cidr" {
description = "The IP range for the public route that will be created within the VPC"
type = string
default = "0.0.0.0/0"
}
# EKS Cluster Variables
variable "eks_cluster_1_name" {
description = "The name of the EKS cluster that will be created"
type = string
default = "zeus"
}
variable "eks_cluster_version" {
description = "The version of EKS to use for the cluster. This should be a float or integer value, such as 1.21 or 1.25."
type = number
default = 1.25
}
# EKS Node Group Variables
variable "eks_node_group_1_name" {
description = "The name of the node group that will be created within the EKS cluster"
type = string
default = "private-node-group-eks-1"
}
variable "eks_node_group_1_capacity_type" {
description = "The capacity type for the node group that will be created within the EKS cluster"
type = string
default = "ON_DEMAND"
}
variable "eks_node_group_1_instance_types" {
description = "The instance types of the EKS node group"
type = string
default = "t2.xlarge"
}
variable "eks_node_group_1_desired_size" {
description = "The desired number of worker nodes in the EKS cluster"
type = number
default = 1
}
variable "eks_node_group_1_max_size" {
description = "The maximum number of worker nodes in the EKS cluster"
type = number
default = 5
}
variable "eks_node_group_1_min_size" {
description = "The minimum number of worker nodes in the EKS cluster"
type = number
default = 1
}
variable "eks_node_group_1_max_unavailable" {
description = "The maximum number of worker nodes that can be unavailable during a deployment update"
type = number
default = 1
}
variable "eks_node_group_1_labels" {
description = "A map of key-value pairs used to label the worker nodes in the EKS cluster"
type = map(string)
default = {
role = "general"
}
}
# KMS Variables
variable "kms_key_1_default_retention_days" {
description = "The default retention period in days for keys created in the KMS keyring"
type = number
default = 10
}
variable "kms_key_2_default_retention_days" {
description = "The default retention period in days for keys created in the KMS keyring"
type = number
default = 10
}
variable "kms_key_3_default_retention_days" {
description = "The default retention period in days for keys created in the KMS keyring"
type = number
default = 10
}
# DynamoDB Variables
variable "dynamodb_terraform_state_lock_1_billing_mode" {
description = "The billing mode for the DynamoDB table used for Terraform state locking"
type = string
default = "PAY_PER_REQUEST"
}
# Helm Variables
variable "helm_ebs_csi_driver_version" {
description = "The version of the AWS EBS CSI Driver Helm chart to deploy"
type = string
default = "2.18.0"
}
variable "helm_timeout_seconds" {
type = number
description = "Helm chart deployment can sometimes take longer than the default 5 minutes"
default = 800
}