|
@@ -41,7 +41,7 @@ resource "aws_instance" "instance" {
|
|
|
|
|
|
# These device definitions are optional, but added for clarity.
|
|
|
root_block_device {
|
|
|
- volume_type = "gp2"
|
|
|
+ volume_type = "gp3"
|
|
|
#volume_size = "60"
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -51,6 +51,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# swap
|
|
|
device_name = "/dev/xvdm"
|
|
|
+ volume_type = "gp3"
|
|
|
volume_size = 48
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -65,6 +66,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /home
|
|
|
device_name = "/dev/xvdn"
|
|
|
+ volume_type = "gp3"
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -75,6 +77,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /var
|
|
|
device_name = "/dev/xvdo"
|
|
|
+ volume_type = "gp3"
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -84,6 +87,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /var/tmp
|
|
|
device_name = "/dev/xvdp"
|
|
|
+ volume_type = "gp3"
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -93,7 +97,8 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /var/log
|
|
|
device_name = "/dev/xvdq"
|
|
|
- # volume_size = xx
|
|
|
+ volume_type = "gp3"
|
|
|
+ volume_size = 16
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
|
kms_key_id = data.aws_kms_key.ebs-key.arn
|
|
@@ -102,6 +107,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /var/log/audit
|
|
|
device_name = "/dev/xvdr"
|
|
|
+ volume_type = "gp3"
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -111,6 +117,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /tmp
|
|
|
device_name = "/dev/xvds"
|
|
|
+ volume_type = "gp3"
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|