forked from mit-dci/terraform-aws-opencbdc-tctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
175 lines (168 loc) · 5.02 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
variable "base_domain" {
type = string
description = "Base domain to use for ACM Cert and Route53 record management."
default = ""
}
#EC2
variable "public_key" {
type = string
description = "SSH public key to use in EC2 instances."
default = ""
}
# VPC Variables
variable "use1_main_network_block" {
type = string
description = "Base CIDR block to be used in us-east-1."
default = "10.0.0.0/16"
}
variable "use2_main_network_block" {
type = string
description = "Base CIDR block to be used in us-east-2."
default = "10.10.0.0/16"
}
variable "usw2_main_network_block" {
type = string
description = "Base CIDR block to be used in us-west-2."
default = "10.20.0.0/16"
}
variable "subnet_prefix_extension" {
type = number
description = "CIDR block bits extension to calculate CIDR blocks of each subnetwork."
default = 4
}
variable "public_subnet_tags" {
type = map(string)
description = "Tags associated with public subnets"
default = {}
}
variable "private_subnet_tags" {
type = map(string)
description = "Tags associated with private subnets"
default = {}
}
variable "zone_offset" {
type = number
description = "CIDR block bits extension offset to calculate Public subnets, avoiding collisions with Private subnets."
default = 8
}
# Test Controller
variable "create_certbot_lambda" {
type = bool
description = "Boolean to create the certbot lambda to update the letsencrypt cert for the test controller."
default = true
}
variable "lets_encrypt_email" {
type = string
description = "Email to associate with let's encrypt certificate"
}
variable "test_controller_github_repo" {
description = "The Github repo base name"
type = string
default = "opencbdc-tctl"
}
variable "test_controller_github_repo_owner" {
description = "The Github repo owner"
type = string
default = "mit-dci"
}
variable "test_controller_github_repo_branch" {
description = "The repo branch to use for the Test Controller deployment pipeline."
type = string
default = "trunk"
}
variable "test_controller_github_access_token" {
description = "Access token for cloning test controller repo"
type = string
}
variable "test_controller_node_container_build_image" {
type = string
description = "An optional custom container build image for test controller Nodejs depencies"
default = "node:14"
}
variable "test_controller_golang_container_build_image" {
type = string
description = "An optional custom container build image for test controller Golang depencies"
default = "golang:1.16"
}
variable "test_controller_app_container_base_image" {
type = string
description = "An optional custom container base image for the test controller and releated services"
default = "ubuntu:20.04"
}
variable "test_controller_launch_type" {
description = "The ECS task launch type to run the test controller."
type = string
default = "FARGATE"
}
variable "test_controller_cpu" {
description = "The ECS task CPU"
type = string
default = "4096"
}
variable "test_controller_memory" {
description = "The ECS task memory"
type = string
default = "30720"
}
variable "test_controller_health_check_grace_period_seconds" {
description = "The ECS service health check grace period in seconds"
type = number
default = 300
}
variable "transaction_processor_repo_url" {
description = "Transaction repo cloned by the test controller for load generation logic"
type = string
default = "https://github.com/mit-dci/opencbdc-tx.git"
}
variable "transaction_processor_main_branch" {
type = string
description = "Main branch of transaction repo"
default = "trunk"
}
variable "cluster_instance_type" {
type = string
description = "If test controller launch type is EC2, the instance size to use."
default = "c5ad.12xlarge"
}
# Seed Generator
variable "create_uhs_seed_generator" {
type = bool
description = "Determines whether or not to create uhs seed generator resources"
default = true
}
variable "uhs_seed_generator_max_vcpus" {
description = "Max vcpus allocatable to the seed generator environment"
type = string
default = "50"
}
variable "uhs_seed_generator_job_vcpu" {
description = "Vcpus required for a seed generator batch job"
type = string
default = "4"
}
variable "uhs_seed_generator_job_memory" {
description = "Memory required for a seed generator batch job"
type = string
default = "8192"
}
# Test Controller Agents
variable "agent_instance_types" {
type = list(string)
description = "The instance types used in agent launch templates."
default = [
"c5n.large",
"c5n.2xlarge",
"c5n.9xlarge",
"c5n.metal"
]
}
# Tags
variable "environment" {
type = string
description = "AWS tag to indicate environment name of each infrastructure object."
}
variable "resource_tags" {
type = map(string)
description = "Tags to set for all resources"
default = {}
}