diff --git a/local.tf b/local.tf index bb23a6337f..7e68ffbc6e 100644 --- a/local.tf +++ b/local.tf @@ -44,6 +44,7 @@ locals { root_volume_size = "100" # root volume size of workers instances. root_volume_type = "gp2" # root volume type of workers instances, can be 'standard', 'gp2', or 'io1' root_iops = "0" # The amount of provisioned IOPS. This must be set with a volume_type of "io1". + root_volume_throughput = "0" # The amount of throughput to provision for a gp3 volume. key_name = "" # The key pair name that should be used for the instances in the autoscaling group pre_userdata = "" # userdata to pre-append to the default userdata. userdata_template_file = "" # alternate template to use for userdata diff --git a/versions.tf b/versions.tf index 83458a43c3..2e92c9bed0 100644 --- a/versions.tf +++ b/versions.tf @@ -2,7 +2,7 @@ terraform { required_version = ">= 0.12.9, != 0.13.0" required_providers { - aws = ">= 3.3.0" + aws = ">= 3.21.0" local = ">= 1.4" null = ">= 2.1" template = ">= 2.1" diff --git a/workers_launch_template.tf b/workers_launch_template.tf index 4e96279efe..5f41c84845 100644 --- a/workers_launch_template.tf +++ b/workers_launch_template.tf @@ -379,6 +379,11 @@ resource "aws_launch_template" "workers_launch_template" { "root_iops", local.workers_group_defaults["root_iops"], ) + throughput = lookup( + var.worker_groups_launch_template[count.index], + "root_volume_throughput", + local.workers_group_defaults["root_volume_throughput"], + ) encrypted = lookup( var.worker_groups_launch_template[count.index], "root_encrypted", @@ -414,6 +419,11 @@ resource "aws_launch_template" "workers_launch_template" { "iops", local.workers_group_defaults["root_iops"], ) + throughput = lookup( + block_device_mappings.value, + "throughput", + local.workers_group_defaults["root_volume_throughput"], + ) encrypted = lookup( block_device_mappings.value, "encrypted",