How to get list of attached EBS(s) to EC2? While EC2 was created long back?

Hi All,

I have to set delete_on_termination (i.e. true or false) for every EBS devices attached to the EC2, while the user will only provide instance ID? How to do this?

User will just pass instance ID of earlier created EC2.

Regards,
Bhavin