You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| elb_scheme | 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 | string |`public`| no |
224
224
| enable_log_publication_control | Copy the log files for your application's Amazon EC2 instances to the Amazon S3 bucket associated with your application | bool |`false`| no |
225
+
| enable_spot_instances | Enable Spot Instance requests for your environment | bool |`false`| no |
225
226
| enable_stream_logs | Whether to create groups in CloudWatch Logs for proxy and deployment logs, and stream logs from each instance in your environment | bool |`false`| no |
226
227
| enhanced_reporting_enabled | Whether to enable "enhanced" health reporting for this environment. If false, "basic" reporting is used. When you set this to false, you must also set `enable_managed_actions` to false | bool |`true`| no |
227
228
| env_vars | Map of custom ENV variables to be provided to the application running on Elastic Beanstalk, e.g. env_vars = { DB_USER = 'admin' DB_PASS = 'xxxxxx' } | map(string) |`<map>`| no |
@@ -254,6 +255,9 @@ Available targets:
254
255
| root_volume_size | The size of the EBS root volume | number |`8`| no |
255
256
| root_volume_type | The type of the EBS root volume | string |`gp2`| no |
256
257
| solution_stack_name | Elastic Beanstalk stack, e.g. Docker, Go, Node, Java, IIS. For more info, see https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html| string | - | yes |
258
+
| spot_fleet_on_demand_above_base_percentage | The percentage of On-Demand Instances as part of additional capacity that your Auto Scaling group provisions beyond the SpotOnDemandBase instances. This option is relevant only when enable_spot_instances is true. | number |`-1`| no |
259
+
| spot_fleet_on_demand_base | The minimum number of On-Demand Instances that your Auto Scaling group provisions before considering Spot Instances as your environment scales up. This option is relevant only when enable_spot_instances is true. | number |`0`| no |
260
+
| spot_max_price | The maximum price per unit hour, in US$, that you're willing to pay for a Spot Instance. This option is relevant only when enable_spot_instances is true. Valid values are between 0.001 and 20.0 | number |`-1`| no |
257
261
| ssh_listener_enabled | Enable SSH port | bool |`false`| no |
258
262
| ssh_listener_port | SSH port | number |`22`| no |
259
263
| ssh_source_restriction | Used to lock down SSH access to the EC2 instances | string |`0.0.0.0/0`| no |
| elb_scheme | 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 | string |`public`| no |
29
29
| enable_log_publication_control | Copy the log files for your application's Amazon EC2 instances to the Amazon S3 bucket associated with your application | bool |`false`| no |
30
+
| enable_spot_instances | Enable Spot Instance requests for your environment | bool |`false`| no |
30
31
| enable_stream_logs | Whether to create groups in CloudWatch Logs for proxy and deployment logs, and stream logs from each instance in your environment | bool |`false`| no |
31
32
| enhanced_reporting_enabled | Whether to enable "enhanced" health reporting for this environment. If false, "basic" reporting is used. When you set this to false, you must also set `enable_managed_actions` to false | bool |`true`| no |
32
33
| env_vars | Map of custom ENV variables to be provided to the application running on Elastic Beanstalk, e.g. env_vars = { DB_USER = 'admin' DB_PASS = 'xxxxxx' } | map(string) |`<map>`| no |
@@ -59,6 +60,9 @@
59
60
| root_volume_size | The size of the EBS root volume | number |`8`| no |
60
61
| root_volume_type | The type of the EBS root volume | string |`gp2`| no |
61
62
| solution_stack_name | Elastic Beanstalk stack, e.g. Docker, Go, Node, Java, IIS. For more info, see https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html| string | - | yes |
63
+
| spot_fleet_on_demand_above_base_percentage | The percentage of On-Demand Instances as part of additional capacity that your Auto Scaling group provisions beyond the SpotOnDemandBase instances. This option is relevant only when enable_spot_instances is true. | number |`-1`| no |
64
+
| spot_fleet_on_demand_base | The minimum number of On-Demand Instances that your Auto Scaling group provisions before considering Spot Instances as your environment scales up. This option is relevant only when enable_spot_instances is true. | number |`0`| no |
65
+
| spot_max_price | The maximum price per unit hour, in US$, that you're willing to pay for a Spot Instance. This option is relevant only when enable_spot_instances is true. Valid values are between 0.001 and 20.0 | number |`-1`| no |
62
66
| ssh_listener_enabled | Enable SSH port | bool |`false`| no |
63
67
| ssh_listener_port | SSH port | number |`22`| no |
64
68
| ssh_source_restriction | Used to lock down SSH access to the EC2 instances | string |`0.0.0.0/0`| no |
Copy file name to clipboardExpand all lines: variables.tf
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,30 @@ variable "instance_type" {
119
119
description="Instances type"
120
120
}
121
121
122
+
variable"enable_spot_instances" {
123
+
type=bool
124
+
default=false
125
+
description="Enable Spot Instance requests for your environment"
126
+
}
127
+
128
+
variable"spot_fleet_on_demand_base" {
129
+
type=number
130
+
default=0
131
+
description="The minimum number of On-Demand Instances that your Auto Scaling group provisions before considering Spot Instances as your environment scales up. This option is relevant only when enable_spot_instances is true."
description="The percentage of On-Demand Instances as part of additional capacity that your Auto Scaling group provisions beyond the SpotOnDemandBase instances. This option is relevant only when enable_spot_instances is true."
138
+
}
139
+
140
+
variable"spot_max_price" {
141
+
type=number
142
+
default=-1
143
+
description="The maximum price per unit hour, in US$, that you're willing to pay for a Spot Instance. This option is relevant only when enable_spot_instances is true. Valid values are between 0.001 and 20.0"
0 commit comments