Commit 8db31d40 authored by Daisuke Fujita's avatar Daisuke Fujita

Exclude iops if device type is standard

parent dff6d1ef
......@@ -22,7 +22,9 @@ resource "aws_instance" "<%= module_name_of(instance) %>" {
root_block_device {
volume_type = "<%= block_device.volume_type %>"
volume_size = <%= block_device.size %>
<%- if block_device.iops -%>
iops = <%= block_device.iops %>
<%- end -%>
delete_on_termination = <%= mapping.ebs.delete_on_termination %>
}
<%- else -%>
......@@ -31,7 +33,9 @@ resource "aws_instance" "<%= module_name_of(instance) %>" {
snapshot_id = "<%= block_device.snapshot_id %>"
volume_type = "<%= block_device.volume_type %>"
volume_size = <%= block_device.size %>
<%- if block_device.iops -%>
iops = <%= block_device.iops %>
<%- end -%>
delete_on_termination = <%= mapping.ebs.delete_on_termination %>
}
<% end -%>
......
......@@ -278,8 +278,7 @@ module Terraforming
delete_on_termination: true
}
],
volume_type: "gp2",
iops: 24,
volume_type: "standard",
encrypted: false
}
]
......@@ -333,9 +332,8 @@ resource "aws_instance" "hoge" {
source_dest_check = true
root_block_device {
volume_type = "gp2"
volume_type = "standard"
volume_size = 8
iops = 24
delete_on_termination = true
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment