Skip to content

Commit d2a9309

Browse files
authored
fix: remove deprecated block_duration_minutes variable
1 parent 7fb9b16 commit d2a9309

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ No modules.
245245
| <a name="input_root_block_device"></a> [root\_block\_device](#input\_root\_block\_device) | Customize details about the root block device of the instance. See Block Devices below for details | `list(any)` | `[]` | no |
246246
| <a name="input_secondary_private_ips"></a> [secondary\_private\_ips](#input\_secondary\_private\_ips) | A list of secondary private IPv4 addresses to assign to the instance's primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e. referenced in a `network_interface block` | `list(string)` | `null` | no |
247247
| <a name="input_source_dest_check"></a> [source\_dest\_check](#input\_source\_dest\_check) | Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs | `bool` | `null` | no |
248-
| <a name="input_spot_block_duration_minutes"></a> [spot\_block\_duration\_minutes](#input\_spot\_block\_duration\_minutes) | The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360) | `number` | `null` | no |
249248
| <a name="input_spot_instance_interruption_behavior"></a> [spot\_instance\_interruption\_behavior](#input\_spot\_instance\_interruption\_behavior) | Indicates Spot instance behavior when it is interrupted. Valid values are `terminate`, `stop`, or `hibernate` | `string` | `null` | no |
250249
| <a name="input_spot_launch_group"></a> [spot\_launch\_group](#input\_spot\_launch\_group) | A launch group is a group of spot instances that launch together and terminate together. If left empty instances are launched and terminated individually | `string` | `null` | no |
251250
| <a name="input_spot_price"></a> [spot\_price](#input\_spot\_price) | The maximum price to request on the spot market. Defaults to on-demand price | `string` | `null` | no |

main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ resource "aws_spot_instance_request" "this" {
409409
wait_for_fulfillment = var.spot_wait_for_fulfillment
410410
spot_type = var.spot_type
411411
launch_group = var.spot_launch_group
412-
block_duration_minutes = var.spot_block_duration_minutes
413412
instance_interruption_behavior = var.spot_instance_interruption_behavior
414413
valid_until = var.spot_valid_until
415414
valid_from = var.spot_valid_from

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,6 @@ variable "spot_launch_group" {
309309
default = null
310310
}
311311

312-
variable "spot_block_duration_minutes" {
313-
description = "The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360)"
314-
type = number
315-
default = null
316-
}
317-
318312
variable "spot_instance_interruption_behavior" {
319313
description = "Indicates Spot instance behavior when it is interrupted. Valid values are `terminate`, `stop`, or `hibernate`"
320314
type = string

wrappers/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ module "wrapper" {
5858
root_block_device = try(each.value.root_block_device, var.defaults.root_block_device, [])
5959
secondary_private_ips = try(each.value.secondary_private_ips, var.defaults.secondary_private_ips, null)
6060
source_dest_check = try(each.value.source_dest_check, var.defaults.source_dest_check, null)
61-
spot_block_duration_minutes = try(each.value.spot_block_duration_minutes, var.defaults.spot_block_duration_minutes, null)
6261
spot_instance_interruption_behavior = try(each.value.spot_instance_interruption_behavior, var.defaults.spot_instance_interruption_behavior, null)
6362
spot_launch_group = try(each.value.spot_launch_group, var.defaults.spot_launch_group, null)
6463
spot_price = try(each.value.spot_price, var.defaults.spot_price, null)

0 commit comments

Comments
 (0)