Skip to content

Commit b06e376

Browse files
authored
feat: Add support for EBS GP3 throughput (#233)
1 parent 4fa103f commit b06e376

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

examples/basic/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ module "ec2" {
9393
enable_volume_tags = false
9494
root_block_device = [
9595
{
96-
volume_type = "gp2"
96+
volume_type = "gp3"
9797
volume_size = 10
98+
throughput = 200
9899
tags = {
99100
Name = "my-root-block"
100101
}
@@ -104,8 +105,9 @@ module "ec2" {
104105
ebs_block_device = [
105106
{
106107
device_name = "/dev/sdf"
107-
volume_type = "gp2"
108+
volume_type = "gp3"
108109
volume_size = 5
110+
throughput = 200
109111
encrypted = true
110112
kms_key_id = aws_kms_key.this.arn
111113
}

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ resource "aws_instance" "this" {
3535
kms_key_id = lookup(root_block_device.value, "kms_key_id", null)
3636
volume_size = lookup(root_block_device.value, "volume_size", null)
3737
volume_type = lookup(root_block_device.value, "volume_type", null)
38+
throughput = lookup(root_block_device.value, "throughput", null)
3839
tags = lookup(root_block_device.value, "tags", null)
3940
}
4041
}
@@ -50,6 +51,7 @@ resource "aws_instance" "this" {
5051
snapshot_id = lookup(ebs_block_device.value, "snapshot_id", null)
5152
volume_size = lookup(ebs_block_device.value, "volume_size", null)
5253
volume_type = lookup(ebs_block_device.value, "volume_type", null)
54+
throughput = lookup(ebs_block_device.value, "throughput", null)
5355
}
5456
}
5557

@@ -105,4 +107,4 @@ resource "aws_instance" "this" {
105107
credit_specification {
106108
cpu_credits = local.is_t_instance_type ? var.cpu_credits : null
107109
}
108-
}
110+
}

0 commit comments

Comments
 (0)