# Overriding AWS AMI volume device names?

**URL:** <https://forum.ansible.com/t/overriding-aws-ami-volume-device-names/29299>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [December 19, 2018, 1:36pm UTC](https://forum.ansible.com/t/overriding-aws-ami-volume-device-names/29299 "2018-12-19T13:36:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [December 19, 2018, 1:36pm UTC](https://forum.ansible.com/t/overriding-aws-ami-volume-device-names/29299/1 "2018-12-19T13:36:19Z")

</div>

Hi there.

I have an AMI that was taken from an instance with two EBS volumes, attached to devices /dev/sda1 and xvdb.

I want to override the volume device names, and put volumes on (say) xvda and xvdf. (and xvdg, xvdh…). I would still like to use the AMI’s root volume (name and snapshot), but all the rest I want to replace with empty volumes.

I vaguely remember reading somewhere that this is possible, but I’m having trouble figuring it out. I keep getting a new instance with /dev/sda1 and xvdb _as well as_ the new volumes I am creating and attaching xvdf etc.

Using ec2\_vol.

Regards, K.
