-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
165 lines (141 loc) · 3.73 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
variable "region" {
description = "The region Terraform deploys your instances"
type = string
default = "us-east-2"
}
variable "env_tag" {
description = "The environment tag to apply to aws resources."
type = string
default = "test"
}
variable "app_ami" {
description = "AMI to use for the application vm. Leave blank to lookup most recent ami."
type = string
default = ""
}
variable "db_ami" {
description = "AMI to use for the mongo vm. Should be ARM architecture. Leave blank to lookup most recent ami."
type = string
default = ""
}
variable "app_volume_size" {
description = "Size in Gb of attached volume for application"
type = number
default = 100
}
variable "db_volume_size" {
description = "Size in Gb of attached volume for database"
type = number
default = 30
}
variable "api_cert_domain" {
description = "Name of domain of ACM cert covering the api_domain."
type = string
default = "false"
}
variable "ui_cert_domain" {
description = "Name of domain of ACM cert covering the ui_domain."
type = string
default = "false"
}
variable "ui_cert_arn" {
description = "Optional ARN of cert covering the ui_domain to override domain cert lookup."
type = string
default = null
}
variable "api_domain" {
description = "Domain to direct to load balancer."
type = string
default = "false"
}
variable "ui_domain_aws" {
description = "Domains to direct to static site (UI)."
type = string
default = "genome-bravo.org"
}
variable "ui_domain_ext" {
description = "Domains to direct to static site (UI)."
type = list(string)
default = ["bravobeta.sph.umich.edu"]
}
variable "app_inst_type" {
description = "Instance type for application"
type = string
default = "t3a.large"
}
variable "db_inst_type" {
description = "Instance type for database. Should be ARM architecture."
type = string
default = "r7g.medium"
}
variable "vpc_cidr_block" {
description = "CIDR block for VPC"
type = string
default = "10.0.0.0/16"
}
variable "key_pair_name" {
description = "Name of existing keypair to use for bastion host"
type = string
}
variable "bucket_name" {
description = "Name of bucket backing vignette data is stored in"
type = string
}
variable "enable_vpn_gateway" {
description = "Enable a VPN gateway in your VPC."
type = bool
default = false
}
variable "public_subnet_count" {
description = "Number of public subnets."
type = number
default = 2
}
variable "private_subnet_count" {
description = "Number of private subnets."
type = number
default = 2
}
variable "public_subnet_cidr_blocks" {
description = "Available cidr blocks for public subnets"
type = list(string)
default = [
"10.0.1.0/24",
"10.0.2.0/24",
"10.0.3.0/24",
"10.0.4.0/24",
"10.0.5.0/24",
"10.0.6.0/24",
"10.0.7.0/24",
"10.0.8.0/24",
]
}
variable "private_subnet_cidr_blocks" {
description = "Available cidr blocks for private subnets"
type = list(string)
default = [
"10.0.101.0/24",
"10.0.102.0/24",
"10.0.103.0/24",
"10.0.104.0/24",
"10.0.105.0/24",
"10.0.106.0/24",
"10.0.107.0/24",
"10.0.108.0/24",
]
}
variable "enable_app_server_env" {
description = "Enable app_server environment"
type = bool
default = true
}
variable "app_server_instance_count" {
description = "Number of instances in app_server environment"
type = number
default = 1
}
variable "install_httpd" {
description = "Install simple httpd to debug provisioning"
type = bool
default = false
}