feat: Added throughput support for root and EBS disks (#1445)

This commit is contained in:
Junaid Ali
2021-09-02 11:28:13 +01:00
committed by GitHub
parent 19ce95d7b6
commit bcea0708e6
5 changed files with 31 additions and 4 deletions

View File

@@ -304,6 +304,11 @@ resource "aws_launch_configuration" "workers" {
"root_iops",
local.workers_group_defaults["root_iops"],
)
throughput = lookup(
var.worker_groups[count.index],
"root_volume_throughput",
local.workers_group_defaults["root_volume_throughput"],
)
delete_on_termination = true
}
@@ -327,6 +332,11 @@ resource "aws_launch_configuration" "workers" {
"iops",
local.workers_group_defaults["root_iops"],
)
throughput = lookup(
ebs_block_device.value,
"throughput",
local.workers_group_defaults["root_volume_throughput"],
)
encrypted = lookup(
ebs_block_device.value,
"encrypted",