lib/terraforming/template/tf/ec2.erb in terraforming-0.3.1 vs lib/terraforming/template/tf/ec2.erb in terraforming-0.3.2

- old
+ new

@@ -20,19 +20,23 @@ <%- mapping = block_device_mapping_of(instance, block_device.volume_id) -%> <%- if root_block_device?(mapping, 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 -%> ebs_block_device { device_name = "<%= mapping.device_name %>" 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 -%> <% end -%>