View difference between Paste ID: 7RiH8TRb and VyjnSSEw
SHOW: | | - or go back to the newest paste.
1-
instance_id['rows'].each do |row|
1+
[93] pry(main)> parsed['Reservations'][0]['Instances'][0]['BlockDeviceMappings'].map do |test|
2-
   	instances = row['normal']['tags']
2+
[93] pry(main)*   volume = test.map {test['Ebs']['VolumeId']}  
3-
   	instances.each do |instance|
3+
[93] pry(main)* end  
4-
   		volume_id_json = `aws ec2 describe-instances --instance-ids #{instance} --output json`
4+
=> [["vol-44068e41", "vol-44068e41"], ["vol-36068e33", "vol-36068e33"]]