瀏覽代碼

Merge pull request #285 from mdr-engineering/hotfix/ftd_na_IncreaseSensuLogSpace

Increases Sensu /var/log to 16GB and Updates Volumes to GP3
Frederick Damstra 3 年之前
父節點
當前提交
bab3a7e38a
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      base/sensu/main.tf

+ 9 - 2
base/sensu/main.tf

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