瀏覽代碼

Merge pull request #294 from mdr-engineering/feature/dw_MSOCI-1623_tq_server

MSOCI-1623 convert to gp3
Duane Waddle 3 年之前
父節點
當前提交
42e3486ad8
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      base/threatquotient/main.tf

+ 9 - 1
base/threatquotient/main.tf

@@ -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