0
Ich versuche, alle mit einer Instanz verbundenen Datenträger abzurufen.Mit der Instanz verknüpfte Volume-Informationen abrufen
if volume.attachment_state() == 'attached':
volumesinstance = ec2_connection.get_all_instances()
ids = [z for k in volumesinstance for z in k.instances]
for s in ids:
try:
tags = s.tags
instance_name = tags["Name"]
print (instance_name)
except Exception as e:
print e
Allerdings funktioniert es nicht wie vorgesehen.