1 # Variables for elastic beanstalk VPC
2 variable "vpc_cidr_block" {
3 description = "The CIDR block for the association."
5 default = "10.0.0.0/16"
8 variable "vpc_enable_dns_hostnames" {
9 description = "Whether or not the VPC has DNS hostname support."
14 variable "vpc_enable_dns_support" {
15 description = "Whether or not the VPC has DNS support."
20 variable "vpc_instance_tenancy" {
21 description = "The allowed tenancy of instances launched into the selected VPC."
26 # Variables for elastic beanstalk Subnet
27 variable "subnet_a_availability_zone" {
28 description = "AZ for the subnet."
30 default = "us-east-1a"
33 variable "subnet_a_cidr_block" {
34 description = "The IPv4 CIDR block for the subnet."
36 default = "10.0.0.0/20"
39 variable "subnet_b_availability_zone" {
40 description = "AZ for the subnet."
42 default = "us-east-1b"
45 variable "subnet_b_cidr_block" {
46 description = "The IPv4 CIDR block for the subnet."
48 default = "10.0.16.0/20"
51 # Variables for elastic beanstalk Application
52 variable "environment_application" {
53 description = "The name of the application, must be unique within account."
55 default = "Beanstalk Application"
58 variable "application_description" {
59 description = "Short description of the application."
61 default = "Beanstalk Application"
64 variable "application_name" {
65 description = "The name of the application, must be unique within account."
70 variable "appversion_lifecycle_service_role_arn" {
71 description = "The service role ARN to use for application version cleanup. If left empty, the `appversion_lifecycle` block will not be created."
76 variable "appversion_lifecycle_max_count" {
77 description = "The max number of application versions to keep"
82 variable "appversion_lifecycle_delete_source_from_s3" {
83 description = "Whether to delete application versions from S3 source"
88 # Variables for elastic beanstalk Environment
89 variable "environment_description" {
90 description = "Short description of the environment."
92 default = "Beanstalk Environment"
95 variable "environment_name" {
96 description = "A unique name for this Environment. This name is used in the application URL."
98 default = "Beanstalk-env"
101 variable "environment_solution_stack_name" {
102 description = "A solution stack to base your environment off of."
104 default = "64bit Amazon Linux 2 v3.3.11 running Python 3.8"
107 variable "environment_tier" {
108 description = "The environment tier specified."
110 default = "WebServer"
113 variable "environment_wait_for_ready_timeout" {
114 description = "The maximum duration to wait for the Elastic Beanstalk Environment to be in a ready state before timing out"
119 variable "environment_version_label" {
120 description = "The name of the Elastic Beanstalk Application Version to use in deployment."
126 variable "instances_instance_types" {
127 description = "Instances type"
129 default = "t3.medium"
133 variable "associate_public_ip_address" {
134 description = "Whether to associate public IP addresses to the instances."
139 variable "elb_scheme" {
140 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."
145 # aws:elbv2:listener:default
146 variable "default_listener_enabled" {
147 description = "Set to false to disable the listener. You can use this option to disable the default listener on port 80."
152 # aws:elasticbeanstalk:environment
153 variable "environment_loadbalancer_type" {
154 description = "Load Balancer type, e.g. 'application' or 'classic'."
159 variable "environment_loadbalancer_security_groups" {
160 description = "Load balancer security groups"
165 variable "environment_loadbalancer_managed_security_group" {
166 description = "Load balancer managed security group"
171 variable "environment_loadbalancer_ssl_certificate_id" {
174 description = "Load Balancer SSL certificate ARN. The certificate must be present in AWS Certificate Manager"
177 # aws:elasticbeanstalk:environment:process:default
178 variable "environment_process_default_healthcheck_interval" {
179 description = "The interval of time, in seconds, that Elastic Load Balancing checks the health of the Amazon EC2 instances of your application."
184 variable "environment_process_default_healthy_threshold_count" {
185 description = "The number of consecutive successful requests before Elastic Load Balancing changes the instance health status."
190 variable "environment_process_default_port" {
191 description = "Port application is listening on."
196 variable "environment_process_default_unhealthy_threshold_count" {
197 description = "The number of consecutive unsuccessful requests before Elastic Load Balancing changes the instance health status."
202 # aws:autoscaling:updatepolicy:rollingupdate
203 variable "autoscaling_updatepolicy_rolling_update_enabled" {
204 description = "Whether to enable rolling update."
209 variable "autoscaling_updatepolicy_rolling_update_type" {
210 description = "`Health` or `Immutable`. Set it to `Immutable` to apply the configuration change to a fresh group of instances."
212 default = "Immutable"
215 variable "autoscaling_updatepolicy_min_instance_in_service" {
216 description = "Minimum number of instances in service during update."
221 variable "application_healthcheck_url" {
222 description = "The path where health check requests are sent to."
227 variable "environment_listener_ssl_policy" {
228 description = "Specify a security policy to apply to the listener. This option is only applicable to environments with an application load balancer."
233 variable "default_matcher_http_code" {
234 description = "List of HTTP codes that indicate that an instance is healthy. Note that this option is only applicable to environments with a network or application load balancer."
239 variable "default_health_check_timeout" {
240 description = "The amount of time, in seconds, to wait for a response during a health check. Note that this option is only applicable to environments with an application load balancer"
245 # aws:elasticbeanstalk:command
246 variable "command_deployment_policy" {
247 description = "Use the DeploymentPolicy option to set the deployment type. The following values are supported: `AllAtOnce`, `Rolling`, `RollingWithAdditionalBatch`, `Immutable`, `TrafficSplitting`."
252 # aws:autoscaling:updatepolicy:rollingupdate
253 variable "updatepolicy_max_batch_size" {
254 description = "Maximum number of instances to update at once."
259 # aws:elasticbeanstalk:healthreporting:system
260 variable "healthreporting_system_type" {
261 description = "Whether to enable enhanced health reporting for this environment"
266 # aws:elasticbeanstalk:managedactions
267 variable "managedactions_managed_actions_enabled" {
268 description = "Enable managed platform updates. When you set this to true, you must also specify a `PreferredStartTime` and `UpdateLevel`"
273 variable "managedactions_preferred_start_time" {
274 description = "Configure a maintenance window for managed actions in UTC"
276 default = "Sun:10:00"
279 # aws:elasticbeanstalk:managedactions:platformupdate
280 variable "managedactions_platformupdate_update_level" {
281 description = "The highest level of update to apply with managed platform updates"
286 variable "managedactions_platformupdate_instance_refresh_enabled" {
287 description = "Enable weekly instance replacement."
292 variable "command_ignore_health_check" {
293 description = "Do not cancel a deployment due to failed health checks"
298 # aws:autoscaling:asg
299 variable "autoscaling_asg_minsize" {
300 description = "Minumum instances to launch"
305 variable "autoscaling_asg_maxsize" {
306 description = "Maximum instances to launch"
311 # aws:autoscaling:trigger
312 variable "autoscaling_trigger_measure_name" {
313 description = "Metric used for your Auto Scaling trigger"
315 default = "CPUUtilization"
318 variable "autoscaling_trigger_statistic" {
319 description = "Statistic the trigger should use, such as Average"
324 variable "autoscaling_trigger_unit" {
325 description = "Unit for the trigger measurement, such as Bytes"
330 variable "autoscaling_trigger_lower_threshold" {
331 description = "Minimum level of autoscale metric to remove an instance"
336 variable "autoscaling_trigger_lower_breach_scale_increment" {
337 description = "How many Amazon EC2 instances to remove when performing a scaling activity."
342 variable "autoscaling_trigger_upper_threshold" {
343 description = "Maximum level of autoscale metric to add an instance"
348 variable "autoscaling_trigger_upper_breach_scale_increment" {
349 description = "How many Amazon EC2 instances to add when performing a scaling activity"
354 # aws:elasticbeanstalk:hostmanager
355 variable "hostmanager_log_publication_control" {
356 description = "Copy the log files for your application's Amazon EC2 instances to the Amazon S3 bucket associated with your application"
361 # aws:elasticbeanstalk:cloudwatch:logs
362 variable "cloudwatch_logs_stream_logs" {
363 description = "Whether to create groups in CloudWatch Logs for proxy and deployment logs, and stream logs from each instance in your environment"
368 variable "cloudwatch_logs_delete_on_terminate" {
369 description = "Whether to delete the log groups when the environment is terminated. If false, the logs are kept RetentionInDays days"
374 variable "cloudwatch_logs_retention_in_days" {
375 description = "The number of days to keep log events before they expire."
380 # aws:elasticbeanstalk:cloudwatch:logs:health
381 variable "cloudwatch_logs_health_health_streaming_enabled" {
382 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."
387 variable "cloudwatch_logs_health_delete_on_terminate" {
388 description = "Whether to delete the log group when the environment is terminated. If false, the health data is kept RetentionInDays days."
393 variable "cloudwatch_logs_health_retention_in_days" {
394 description = "The number of days to keep the archived health data before it expires."
399 variable "environment_type" {
400 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)."
402 default = "LoadBalanced"
405 # aws:elasticbeanstalk:application:environment
406 variable "environment_variables" {
407 description = "Map of custom ENV variables to be provided to the application."