Commit b06e3766 authored by schniber's avatar schniber Committed by GitHub

feat: Add support for EBS GP3 throughput (#233)

parent 4fa103f9
...@@ -93,8 +93,9 @@ module "ec2" { ...@@ -93,8 +93,9 @@ module "ec2" {
enable_volume_tags = false enable_volume_tags = false
root_block_device = [ root_block_device = [
{ {
volume_type = "gp2" volume_type = "gp3"
volume_size = 10 volume_size = 10
throughput = 200
tags = { tags = {
Name = "my-root-block" Name = "my-root-block"
} }
...@@ -104,8 +105,9 @@ module "ec2" { ...@@ -104,8 +105,9 @@ module "ec2" {
ebs_block_device = [ ebs_block_device = [
{ {
device_name = "/dev/sdf" device_name = "/dev/sdf"
volume_type = "gp2" volume_type = "gp3"
volume_size = 5 volume_size = 5
throughput = 200
encrypted = true encrypted = true
kms_key_id = aws_kms_key.this.arn kms_key_id = aws_kms_key.this.arn
} }
......
...@@ -35,6 +35,7 @@ resource "aws_instance" "this" { ...@@ -35,6 +35,7 @@ resource "aws_instance" "this" {
kms_key_id = lookup(root_block_device.value, "kms_key_id", null) kms_key_id = lookup(root_block_device.value, "kms_key_id", null)
volume_size = lookup(root_block_device.value, "volume_size", null) volume_size = lookup(root_block_device.value, "volume_size", null)
volume_type = lookup(root_block_device.value, "volume_type", null) volume_type = lookup(root_block_device.value, "volume_type", null)
throughput = lookup(root_block_device.value, "throughput", null)
tags = lookup(root_block_device.value, "tags", null) tags = lookup(root_block_device.value, "tags", null)
} }
} }
...@@ -50,6 +51,7 @@ resource "aws_instance" "this" { ...@@ -50,6 +51,7 @@ resource "aws_instance" "this" {
snapshot_id = lookup(ebs_block_device.value, "snapshot_id", null) snapshot_id = lookup(ebs_block_device.value, "snapshot_id", null)
volume_size = lookup(ebs_block_device.value, "volume_size", null) volume_size = lookup(ebs_block_device.value, "volume_size", null)
volume_type = lookup(ebs_block_device.value, "volume_type", null) volume_type = lookup(ebs_block_device.value, "volume_type", null)
throughput = lookup(ebs_block_device.value, "throughput", null)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment