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

**URL:** <https://forum.ansible.com/t/how-to-get-list-of-attached-ebs-s-to-ec2-while-ec2-was-created-long-back/24126>\
**Category:** Ansible Project\
**Created:** [April 3, 2017, 1:44pm UTC](https://forum.ansible.com/t/how-to-get-list-of-attached-ebs-s-to-ec2-while-ec2-was-created-long-back/24126 "2017-04-03T13:44:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhavin\_Parmar](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@Bhavin\_Parmar](https://forum.ansible.com/u/Bhavin_Parmar)\
**Post date:** [April 3, 2017, 1:44pm UTC](https://forum.ansible.com/t/how-to-get-list-of-attached-ebs-s-to-ec2-while-ec2-was-created-long-back/24126/1 "2017-04-03T13:44:52Z")

</div>

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
