forked from aws-ia/terraform-aws-polygon-technology-edge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
214 lines (202 loc) · 5.47 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# VPC
variable "vpc_name" {
description = "Name of the VPC"
type = string
default = "polygon-edge-vpc"
}
variable "vpc_cidr_block" {
description = "CIDR block for VPC"
type = string
default = "10.250.0.0/16"
}
# S3
variable "s3_bucket_prefix" {
description = "Name prefix for new S3 bucket"
type = string
default = "polygon-edge-shared-"
}
variable "s3_force_destroy" {
type = bool
default = true
description = "Delete S3 bucket on destroy, even if the bucket is not empty"
}
variable "s3_key_name" {
type = string
description = "Name of the file in S3 that will hold configuration"
default = "chain-config"
}
# SECURITY
variable "ssm_parameter_id" {
description = "The id that will be used for storing and fetching from SSM Parameter Store"
type = string
default = "polygon-edge-validators"
}
variable "internal_sec_gr_name_tag" {
type = string
description = "Internal security group name tag"
default = "Polygon Edge Internal"
}
variable "alb_sec_gr_name_tag" {
type = string
description = "External security group name tag"
default = "Polygon Edge External"
}
# EC2
variable "instance_type" {
default = "t3.medium"
type = string
description = "Polygon Edge nodes instance type."
}
variable "ebs_root_name_tag" {
default = "Polygon_Edge_Root_Volume"
type = string
description = "The name tag for the Polygon Edge instance root volume."
}
variable "instance_name" {
default = "Polygon_Edge_Node"
type = string
description = "The name of Polygon Edge instance"
}
variable "instance_interface_name_tag" {
default = "Polygon_Edge_Instance_Interface"
type = string
description = "The name of the instance interface."
}
variable "chain_data_ebs_volume_size" {
default = 30
type = number
description = "The size of the chain data EBS volume."
}
variable "chain_data_ebs_name_tag" {
default = "Polygon_Edge_chain_data_volume"
type = string
description = "The name of the chain data EBS volume."
}
#CHAIN
variable "polygon_edge_dir" {
default = "/home/ubuntu/polygon"
type = string
description = "The directory to place all polygon-edge data and logs"
}
variable "ebs_device" {
default = "/dev/nvme1n1"
type = string
description = "The ebs device path. Defined when creating EBS volume."
}
variable "node_name_prefix" {
type = string
description = "The name prefix that will be used to store secrets"
default = "node"
}
## GENESIS
variable "chain_name" {
type = string
description = "Set the name of chain"
default = ""
}
variable "chain_id" {
type = string
description = "Set the Chain ID"
default = ""
}
variable "block_gas_limit" {
type = string
description = "Set the block gas limit"
default = ""
}
variable "premine" {
type = string
description = "Premine the accounts with the specified ammount. Format: account:ammount,account:ammount"
}
variable "epoch_size" {
type = string
description = "Set the epoch size"
default = ""
}
variable "consensus" {
type = string
description = "Sets consensus protocol."
default = ""
}
variable "max_validator_count" {
type = string
description = "The maximum number of stakers able to join the validator set in a PoS consensus."
default = ""
}
variable "min_validator_count" {
type = string
description = "The minimum number of stakers needed to join the validator set in a PoS consensus."
default = ""
}
variable "pos" {
type = bool
description = "Use PoS IBFT consensus"
default = false
}
# server options
variable "prometheus_address" {
type = string
description = "Enable Prometheus API"
default = ""
}
variable "block_gas_target" {
type = string
description = "Sets the target block gas limit for the chain"
default = ""
}
variable "nat_address" {
type = string
description = "Sets the NAT address for the networking package"
default = ""
}
variable "dns_name" {
type = string
description = "Sets the DNS name for the network package"
default = ""
}
variable "price_limit" {
type = string
description = "Sets minimum gas price limit to enforce for acceptance into the pool"
default = ""
}
variable "max_slots" {
type = string
description = "Sets maximum slots in the pool"
default = ""
}
variable "block_time" {
type = string
description = "Set block production time in seconds"
default = ""
}
#ALB
variable "alb_ssl_certificate" {
type = string
description = "SSL certificate ARN for JSON-RPC loadblancer"
}
variable "nodes_alb_name_prefix" {
type = string
description = "ALB name"
default = "jrpc-"
}
variable "nodes_alb_name_tag" {
type = string
description = "ALB name tag"
default = "Polygon Edge JSON-RPC ALB"
}
variable "nodes_alb_targetgroup_name_prefix" {
type = string
description = "ALB target group name"
default = "jrpc-"
}
# LAMBDA
variable "lambda_function_name" {
type = string
description = "The name of the Lambda function used for chain init"
default = "polygon-edge-init"
}
variable "lambda_function_zip" {
type = string
description = "The lambda function code in zip archive"
default = "https://raw.githubusercontent.com/Trapesys/polygon-edge-assm/aws-lambda/artifacts/main.zip"
}