|
@@ -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)}"
|
|
|
}
|