diff --git a/README.md b/README.md index cc9ea91..6ae4531 100644 --- a/README.md +++ b/README.md @@ -231,13 +231,13 @@ Note: the default behavior of the module is to create an autoscaling group and l | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.32 | +| [aws](#requirement\_aws) | >= 5.45 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.32 | +| [aws](#provider\_aws) | >= 5.45 | ## Modules diff --git a/examples/complete/README.md b/examples/complete/README.md index 8349137..4e60efa 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -30,13 +30,13 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.32 | +| [aws](#requirement\_aws) | >= 5.45 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.32 | +| [aws](#provider\_aws) | >= 5.45 | ## Modules diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 32e9e55..be440f4 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -509,14 +509,17 @@ module "instance_requirements" { accelerator_manufacturers = [] accelerator_names = [] accelerator_types = [] + # If you specify allowed_instance_types, you can't specify excluded_instance_types + # allowed_instance_types = ["m*"] baseline_ebs_bandwidth_mbps = { min = 400 max = 1600 } - burstable_performance = "excluded" - cpu_manufacturers = ["amazon-web-services", "amd", "intel"] + burstable_performance = "excluded" + cpu_manufacturers = ["amazon-web-services", "amd", "intel"] + # If you specify excluded_instance_types, you can't specify allowed_instance_types excluded_instance_types = ["t*"] instance_generations = ["current"] local_storage_types = ["ssd", "hdd"] diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf index 1384338..9771baa 100644 --- a/examples/complete/versions.tf +++ b/examples/complete/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.32" + version = ">= 5.45" } } } diff --git a/main.tf b/main.tf index f203f20..63e16a7 100644 --- a/main.tf +++ b/main.tf @@ -178,8 +178,9 @@ resource "aws_launch_template" "this" { } } - accelerator_types = try(instance_requirements.value.accelerator_types, []) - bare_metal = try(instance_requirements.value.bare_metal, null) + accelerator_types = try(instance_requirements.value.accelerator_types, []) + allowed_instance_types = try(instance_requirements.value.allowed_instance_types, null) + bare_metal = try(instance_requirements.value.bare_metal, null) dynamic "baseline_ebs_bandwidth_mbps" { for_each = try([instance_requirements.value.baseline_ebs_bandwidth_mbps], []) @@ -191,7 +192,7 @@ resource "aws_launch_template" "this" { burstable_performance = try(instance_requirements.value.burstable_performance, null) cpu_manufacturers = try(instance_requirements.value.cpu_manufacturers, []) - excluded_instance_types = try(instance_requirements.value.excluded_instance_types, []) + excluded_instance_types = try(instance_requirements.value.excluded_instance_types, null) instance_generations = try(instance_requirements.value.instance_generations, []) local_storage = try(instance_requirements.value.local_storage, null) local_storage_types = try(instance_requirements.value.local_storage_types, []) diff --git a/versions.tf b/versions.tf index 1384338..9771baa 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.32" + version = ">= 5.45" } } }