We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15408a3 commit 9012630Copy full SHA for 9012630
providers/aws/ec2.go
@@ -94,6 +94,10 @@ func (g *Ec2Generator) PostConvertHook() error {
94
if r.InstanceInfo.Type != "aws_instance" {
95
continue
96
}
97
+ if r.Item["root_block_device"] == nil {
98
+ continue
99
+ }
100
+
101
rootDeviceVolumeType := r.InstanceState.Attributes["root_block_device.0.volume_type"]
102
if !(rootDeviceVolumeType == "io1" || rootDeviceVolumeType == "io2" || rootDeviceVolumeType == "gp3") {
103
delete(r.Item["root_block_device"].([]interface{})[0].(map[string]interface{}), "iops")
0 commit comments