|
@@ -3,6 +3,7 @@ locals {
|
|
|
ami_selection = "tq" # master, minion, ...
|
|
|
server_name_stem = "threatq"
|
|
|
instance_count = 1
|
|
|
+ ebs_volume_type = "gp3"
|
|
|
}
|
|
|
|
|
|
# Use the default EBS key
|
|
@@ -38,7 +39,7 @@ resource "aws_instance" "instance" {
|
|
|
|
|
|
# These device definitions are optional, but added for clarity.
|
|
|
root_block_device {
|
|
|
- volume_type = "gp2"
|
|
|
+ volume_type = local.ebs_volume_type
|
|
|
#volume_size = "60"
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -48,6 +49,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# swap
|
|
|
device_name = "/dev/xvdm"
|
|
|
+ volume_type = local.ebs_volume_type
|
|
|
#volume_size = 48
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -62,6 +64,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /home
|
|
|
device_name = "/dev/xvdn"
|
|
|
+ volume_type = local.ebs_volume_type
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -71,6 +74,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /var
|
|
|
device_name = "/dev/xvdo"
|
|
|
+ volume_type = local.ebs_volume_type
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -80,6 +84,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /var/tmp
|
|
|
device_name = "/dev/xvdp"
|
|
|
+ volume_type = local.ebs_volume_type
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -89,6 +94,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /var/log
|
|
|
device_name = "/dev/xvdq"
|
|
|
+ volume_type = local.ebs_volume_type
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -98,6 +104,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /var/log/audit
|
|
|
device_name = "/dev/xvdr"
|
|
|
+ volume_type = local.ebs_volume_type
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|
|
@@ -107,6 +114,7 @@ resource "aws_instance" "instance" {
|
|
|
ebs_block_device {
|
|
|
# /tmp
|
|
|
device_name = "/dev/xvds"
|
|
|
+ volume_type = local.ebs_volume_type
|
|
|
# volume_size = xx
|
|
|
delete_on_termination = true
|
|
|
encrypted = true
|