4a74df6d39e8396e9ed4106e781250b483828707
[csit.git] / fdio.infra.terraform / 1n_aws_t3 / variables.tf
1 # Variables for elastic beanstalk VPC
2 variable "vpc_cidr_block" {
3   description = "The CIDR block for the association."
4   type        = string
5   default     = "192.168.0.0/24"
6 }
7
8 variable "vpc_enable_dns_hostnames" {
9   description = "Whether or not the VPC has DNS hostname support."
10   type        = bool
11   default     = true
12 }
13
14 variable "vpc_enable_dns_support" {
15   description = "Whether or not the VPC has DNS support."
16   type        = bool
17   default     = true
18 }
19
20 variable "vpc_instance_tenancy" {
21   description = "The allowed tenancy of instances launched into the selected VPC."
22   type        = string
23   default     = "default"
24 }
25
26 # Variables for elastic beanstalk Subnet
27 variable "subnet_availability_zone" {
28   description = "AWS availability zone"
29   type        = string
30   default     = "us-east-1a"
31 }
32
33 # Variables for elastic beanstalk Application
34 variable "application_description" {
35   description = "Short description of the application."
36   type        = string
37   default     = "Beanstalk Application"
38 }
39
40 variable "application_name" {
41   description = "The name of the application, must be unique within account."
42   type        = string
43   default     = "Beanstalk"
44 }
45
46 variable "appversion_lifecycle_service_role_arn" {
47   description = "The service role ARN to use for application version cleanup. If left empty, the `appversion_lifecycle` block will not be created."
48   type        = string
49   default     = ""
50 }
51
52 variable "appversion_lifecycle_max_count" {
53   description = "The max number of application versions to keep"
54   type        = number
55   default     = 2
56 }
57
58 variable "appversion_lifecycle_delete_source_from_s3" {
59   description = "Whether to delete application versions from S3 source"
60   type        = bool
61   default     = false
62 }
63
64 # Variables for elastic beanstalk Environment
65 variable "environment_description" {
66   description = "Short description of the environment."
67   type        = string
68   default     = "Beanstalk Environment"
69 }
70
71 variable "environment_name" {
72   description = "A unique name for this Environment. This name is used in the application URL."
73   type        = string
74   default     = "Beanstalk-env"
75 }
76
77 variable "environment_solution_stack_name" {
78   description = "A solution stack to base your environment off of."
79   type        = string
80   default     = "64bit Amazon Linux 2 v3.3.11 running Python 3.8"
81 }
82
83 variable "environment_tier" {
84   description = "The environment tier specified."
85   type        = string
86   default     = "WebServer"
87 }
88
89 variable "environment_wait_for_ready_timeout" {
90   description = "The maximum duration to wait for the Elastic Beanstalk Environment to be in a ready state before timing out"
91   type        = string
92   default     = "20m"
93 }
94
95 variable "environment_version_label" {
96   description = "The name of the Elastic Beanstalk Application Version to use in deployment."
97   type        = string
98   default     = ""
99 }
100
101 # aws:ec2:instances
102 variable "instances_instance_types" {
103   description = "Instances type"
104   type        = string
105   default     = "t3.medium"
106 }
107
108 # aws:ec2:vpc
109 variable "associate_public_ip_address" {
110   description = "Whether to associate public IP addresses to the instances."
111   type        = bool
112   default     = true
113 }
114
115 variable "elb_scheme" {
116   description = "Specify `internal` if you want to create an internal load balancer in your Amazon VPC so that your Elastic Beanstalk application cannot be accessed from outside your Amazon VPC."
117   type        = string
118   default     = "public"
119 }
120
121 # aws:elbv2:listener:default
122 variable "default_listener_enabled" {
123   description = "Set to false to disable the listener. You can use this option to disable the default listener on port 80."
124   type        = bool
125   default     = true
126 }
127
128 # aws:elasticbeanstalk:environment
129 variable "environment_loadbalancer_type" {
130   description = "Load Balancer type, e.g. 'application' or 'classic'."
131   type        = string
132   default     = "network"
133 }
134
135 # aws:elasticbeanstalk:environment:process:default
136 variable "environment_process_default_healthcheck_interval" {
137   description = "The interval of time, in seconds, that Elastic Load Balancing checks the health of the Amazon EC2 instances of your application."
138   type        = number
139   default     = 10
140 }
141
142 variable "environment_process_default_healthy_threshold_count" {
143   description = "The number of consecutive successful requests before Elastic Load Balancing changes the instance health status."
144   type        = number
145   default     = 3
146 }
147
148 variable "environment_process_default_port" {
149   description = "Port application is listening on."
150   type        = number
151   default     = 5000
152 }
153
154 variable "environment_process_default_unhealthy_threshold_count" {
155   description = "The number of consecutive unsuccessful requests before Elastic Load Balancing changes the instance health status."
156   type        = number
157   default     = 3
158 }
159
160 # aws:elasticbeanstalk:healthreporting:system
161 variable "healthreporting_system_type" {
162   description = "Whether to enable enhanced health reporting for this environment"
163   type        = string
164   default     = "enhanced"
165 }
166
167 # aws:elasticbeanstalk:managedactions
168 variable "managedactions_managed_actions_enabled" {
169   description = "Enable managed platform updates. When you set this to true, you must also specify a `PreferredStartTime` and `UpdateLevel`"
170   type        = bool
171   default     = true
172 }
173
174 variable "managedactions_preferred_start_time" {
175   description = "Configure a maintenance window for managed actions in UTC"
176   type        = string
177   default     = "Sun:10:00"
178 }
179
180 # aws:elasticbeanstalk:managedactions:platformupdate
181 variable "managedactions_platformupdate_update_level" {
182   description = "The highest level of update to apply with managed platform updates"
183   type        = string
184   default     = "minor"
185 }
186
187 variable "managedactions_platformupdate_instance_refresh_enabled" {
188   description = "Enable weekly instance replacement."
189   type        = bool
190   default     = true
191 }
192
193 # aws:autoscaling:asg
194 variable "autoscaling_asg_minsize" {
195   description = "Minumum instances to launch"
196   type        = number
197   default     = 1
198 }
199
200 variable "autoscaling_asg_maxsize" {
201   description = "Maximum instances to launch"
202   type        = number
203   default     = 2
204 }
205
206 # aws:autoscaling:trigger
207 variable "autoscaling_trigger_measure_name" {
208   description = "Metric used for your Auto Scaling trigger"
209   type        = string
210   default     = "CPUUtilization"
211 }
212
213 variable "autoscaling_trigger_statistic" {
214   description = "Statistic the trigger should use, such as Average"
215   type        = string
216   default     = "Average"
217 }
218
219 variable "autoscaling_trigger_unit" {
220   description = "Unit for the trigger measurement, such as Bytes"
221   type        = string
222   default     = "Percent"
223 }
224
225 variable "autoscaling_trigger_lower_threshold" {
226   description = "Minimum level of autoscale metric to remove an instance"
227   type        = number
228   default     = 20
229 }
230
231 variable "autoscaling_trigger_lower_breach_scale_increment" {
232   description = "How many Amazon EC2 instances to remove when performing a scaling activity."
233   type        = number
234   default     = -1
235 }
236
237 variable "autoscaling_trigger_upper_threshold" {
238   description = "Maximum level of autoscale metric to add an instance"
239   type        = number
240   default     = 80
241 }
242
243 variable "autoscaling_trigger_upper_breach_scale_increment" {
244   description = "How many Amazon EC2 instances to add when performing a scaling activity"
245   type        = number
246   default     = 1
247 }
248
249 # aws:elasticbeanstalk:hostmanager
250 variable "hostmanager_log_publication_control" {
251   description = "Copy the log files for your application's Amazon EC2 instances to the Amazon S3 bucket associated with your application"
252   type        = bool
253   default     = true
254 }
255
256 # aws:elasticbeanstalk:cloudwatch:logs
257 variable "cloudwatch_logs_stream_logs" {
258   description = "Whether to create groups in CloudWatch Logs for proxy and deployment logs, and stream logs from each instance in your environment"
259   type        = bool
260   default     = true
261 }
262
263 variable "cloudwatch_logs_delete_on_terminate" {
264   description = "Whether to delete the log groups when the environment is terminated. If false, the logs are kept RetentionInDays days"
265   type        = bool
266   default     = true
267 }
268
269 variable "cloudwatch_logs_retention_in_days" {
270   description = "The number of days to keep log events before they expire."
271   type        = number
272   default     = 3
273 }
274
275 # aws:elasticbeanstalk:cloudwatch:logs:health
276 variable "cloudwatch_logs_health_health_streaming_enabled" {
277   description = "For environments with enhanced health reporting enabled, whether to create a group in CloudWatch Logs for environment health and archive Elastic Beanstalk environment health data. For information about enabling enhanced health, see aws:elasticbeanstalk:healthreporting:system."
278   type        = bool
279   default     = true
280 }
281
282 variable "cloudwatch_logs_health_delete_on_terminate" {
283   description = "Whether to delete the log group when the environment is terminated. If false, the health data is kept RetentionInDays days."
284   type        = bool
285   default     = true
286 }
287
288 variable "cloudwatch_logs_health_retention_in_days" {
289   description = "The number of days to keep the archived health data before it expires."
290   type        = number
291   default     = 3
292 }
293
294 variable "environment_type" {
295   description = "Environment type, e.g. 'LoadBalanced' or 'SingleInstance'. If setting to 'SingleInstance', `rolling_update_type` must be set to 'Time', `updating_min_in_service` must be set to 0, and `loadbalancer_subnets` will be unused (it applies to the ELB, which does not exist in SingleInstance environments)."
296   type        = string
297   default     = "LoadBalanced"
298 }
299
300 # aws:elasticbeanstalk:application:environment
301 variable "environment_variables" {
302   description = "Map of custom ENV variables to be provided to the application."
303   type        = map(string)
304   default     = {}
305 }