Przeglądaj źródła

setup extra flash drives

Chris Mague 5 lat temu
rodzic
commit
fd6ea6a8c6
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      instances.tf

+ 3 - 4
instances.tf

@@ -43,14 +43,13 @@ resource "aws_ebs_volume" "re-flash" {
   count = local.count_flash
   availability_zone = "${element(var.vpc-azs, count.index)}"
   size              = "${var.re-volume-size}"
-  type              = "io1"
-  iops              = var.flash-iops
+  type              = "gp2"
   tags              = merge({ Name = "flash-${var.vpc-name}-${count.index}" }, var.common-tags)
 }
 
 resource "aws_volume_attachment" "re-flash" {
-  count       = var.data-node-count
-  device_name = "/dev/sdi"
+  count       = local.count_flash
+  device_name = "/dev/sdz"
   volume_id   = "${element(aws_ebs_volume.re-flash.*.id, count.index)}"
   instance_id = "${element(aws_instance.re.*.id, count.index)}"
 }