[
[
{
"Instance": "i-024567574b4cb",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"DeleteOnTermination": true
},
{
"DeviceName": "/dev/xcda",
"DeleteOnTermination": false
}
]
}
],
[
{
"Instance": "i-05ff5346656a1a",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"DeleteOnTermination": true
},
{
"DeviceName": "/dev/xcda",
"DeleteOnTermination": false
}
]
},
{
"Instance": "i-00764y45ybe7dc",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"DeleteOnTermination": true
}
]
}
]
]
How to get "instance id" and Device Name using shell script or jq or python for the instances where delete on termination is false?
expected
i-024567574b4cb, /dev/xcda
i-05ff5346656a1a, /dev/xcda