forked from astronomer/terraform-aws-astronomer-aws
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
176 lines (144 loc) · 4.38 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# Variables Configuration
#
# this is the basename that will be used
# for naming other things
variable "deployment_id" {
description = "this lowercase, letters-only string will be used to prefix some of your AWS resources."
type = string
}
variable "allow_public_load_balancers" {
description = "Configuring this variable will allow for public load balancers to be created in the Kubernetes."
default = false
type = bool
}
variable "route53_domain" {
description = "The route53 domain in your account you want to use for the *.<deployment_id>.<route53_domain> subdomain"
type = string
}
variable "admin_email" {
description = "An email address that will be used to create the let's encrypt cert"
type = string
}
variable "cluster_version" {
default = "1.14"
type = string
}
variable "vpc_id" {
default = ""
type = string
description = "The VPC ID, in the case that you do not want terraform to create a VPC with the default network settings on your behalf. If this setting is present, you should also have at least a 2 other subnets, each in a different availability zone, in the same region specified in aws_region."
}
variable "private_subnets" {
default = []
type = list
description = "This variable does nothing unless vpc_id is also set. Specify the subnet IDs in which the platform will be deployed"
}
variable "db_subnets" {
default = []
type = list
description = "This variable does nothing unless vpc_id is also set. Specify the subnet IDs in which the DB will be deployed. If not provided, it will fall back to private_subnets."
}
variable "public_subnets" {
default = []
type = list
description = "This variable does nothing unless vpc_id is also set. Specify the subnet ID(s) (you probably only want one) in the bastion will be deployed. This is not needed unless you are enabling the bastion host."
}
variable "postgres_airflow_password" {
default = ""
description = "The password for the 'airflow' user in postgres. If blank, will be auto-generated"
type = string
}
variable "max_cluster_size" {
default = "8"
type = string
}
variable "min_cluster_size" {
default = "4"
type = string
}
variable "worker_instance_type" {
default = "m5.xlarge"
type = string
}
variable "pub_key_for_worker_aws_key_pair" {
default = ""
type = string
}
variable "db_instance_type" {
default = "db.r4.large"
type = string
}
variable "enable_bastion" {
default = false
type = string
}
variable "enable_windows_box" {
default = false
type = string
}
variable "bastion_instance_type" {
default = "t2.micro"
type = string
}
variable "management_api" {
default = "private"
type = string
}
variable "ten_dot_what_cidr" {
description = "10.X.0.0/16 - choose X. This does nothing in the case that you specify vpc_id variable."
# This is probably not that common
default = "234"
type = string
}
variable "tags" {
description = "A map of tags to add to all resources."
type = map(string)
default = {}
}
variable "peer_vpc_id" {
default = ""
type = string
}
variable "peer_account_id" {
default = ""
type = string
}
variable "bastion_astro_cli_version" {
default = "v0.10.3"
type = string
description = "The version of astro-cli to install on the bastion host"
}
variable "extra_sg_ids_for_eks_security" {
description = "A list of security groups that you want to add in security access to private eks cluster"
default = []
type = list
}
variable "lets_encrypt" {
type = bool
default = true
}
variable "db_replica_count" {
description = "How many replicas for the database"
default = 1
type = number
}
variable "local_ip" {
description = "URL used to find user's local IP for use with bastion host"
default = "http://ipv4.icanhazip.com"
type = string
}
variable "engine_version" {
description = "Aurora database engine version."
type = string
default = "10.7"
}
variable "auto_minor_version_upgrade" {
description = "Determines whether minor engine upgrades for Aurora RDS will be performed automatically in the maintenance window"
type = bool
default = false
}
variable "bastion_ingress_cidr_prefix" {
description = "Prefix of local_ip used as ingress for bastion"
default = 32
type = number
}