This repository has been archived by the owner on Jul 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
153 lines (122 loc) · 4.37 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
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
variable "aws_region" {
type = "string"
description = "Used AWS Region."
}
variable "aws_access_key" {
type = "string"
description = "The account identification key used by your Terraform client."
}
variable "aws_secret_key" {
type = "string"
description = "The secret key used by your terraform client to access AWS."
}
variable "accessing_computer_ip" {
type = "string"
description = "IP of the computer to be allowed to connect to EKS master and nodes."
}
variable "keypair-name" {
type = "string"
description = "Name of the keypair declared in AWS IAM, used to connect into your instances via SSH."
}
variable "hosted_zone_id" {
type = "string"
description = "ID of the hosted Zone created in Route53 before Terraform deployment."
}
variable "hosted_zone_url" {
type = "string"
description = "URL of the hosted Zone created in Route53 before Terraform deployment."
}
# cluster_name will be given to EKS and Aurora_Cluster
variable "cluster_name" {
type = "string"
description = "Name of the cluster - will be used to name and tag resources"
}
variable "domain_name" {
type = "string"
description = "Name of the domain for R53, certificate and domains"
}
variable "ec2_instance_type" {
type = "string"
description = "EC2 instance type (t2.small,etc) for the eks worker"
default = "m4.large"
}
variable "ec2_ami_image_id" {
type = "string"
description = "EC2 regional AMI ID for the eks worker"
}
# Aurora variables
variable "aurora_db_engine" {
type = "string"
description = "ex: aurora, aurora-mysql, aurora-postgresql"
}
variable "aurora_db_instance_class" {
type = "string"
description = "ex: db.r4.large"
}
variable "aurora_db_backup_retention_period" {
default = 1
description = "1 through 35"
}
variable "aurora_db_preferred_backup_window" {
type = "string"
description = "ex: 07:00-09:00"
}
variable "aurora_db_preferred_maintenance_window" {
type = "string"
description = "The weekly time range during which system maintenance can occur, in (UTC) e.g. wed:04:00-wed:04:30"
}
variable "aurora_db_port" {
default = 5432
description = "The port on which the DB accepts connections (ex: 3306 for MySQL, 5432 for PostgreSQL)"
}
variable "cluster_master_username" {
type = "string"
}
variable "cluster_master_password" {
type = "string"
}
variable "vpc_cidr_block" {
type = "string"
description = "VPC cidr_block"
}
# KEEP the number of subnets the same. 2 gateway subnet and 2 subnets for app and db.
# Automation uses the # of subnets to assign various resources which will fail if
# ONE subnet has 2 cirds and another subnet has 3 cdir block ranges
variable "gateway_subnets" {
type = "list"
description = "A map of cidr block ranges for the subnets in the gateway subnet"
}
variable "application_subnets" {
type = "list"
description = "A map of cidr block ranges for the subnets in the application subnet"
}
variable "database_subnets" {
type = "list"
description = "A map of cidr block ranges for the subnets in the database subnet"
}
variable "copy_tags_to_snapshot" {
description = "Copy all Cluster tags to snapshots. Default is false."
}
variable "deletion_protection" {
description = "If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false."
}
variable "storage_encrypted" {
description = "Specifies whether the DB cluster is encrypted. The default is false for provisioned engine_mode and true for serverless engine_mode."
}
variable "kms_key_id" {
type = "string"
description = "The ARN for the KMS encryption key. When specifying kms_key_id, storage_encrypted needs to be set to true."
}
variable "eks_nodes_desired_capacity" {
description = "This is the desired autoscaling group desired capacity of worker nodes to start with"
}
variable "eks_nodes_maximum" {
description = "This is the desired autoscaling group maximum number of worker nodes"
}
variable "eks_nodes_minimum" {
description = "This is the desired autoscaling group minimum number of worker nodes"
}
variable "eks_system_master_users" {
description = "By default, only cluster creator has system:masters role. AWS usernames in this list will also be added to that k8s role"
type = "list"
}