# EC2 create instance with non-default root volume size

**URL:** <https://forum.ansible.com/t/ec2-create-instance-with-non-default-root-volume-size/14350>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [January 15, 2014, 3:53pm UTC](https://forum.ansible.com/t/ec2-create-instance-with-non-default-root-volume-size/14350 "2014-01-15T15:53:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Shenton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Chris\_Shenton](https://forum.ansible.com/u/Chris_Shenton)\
**Post date:** [January 15, 2014, 3:53pm UTC](https://forum.ansible.com/t/ec2-create-instance-with-non-default-root-volume-size/14350/1 "2014-01-15T15:53:20Z")

</div>

In the AWS console, I can create an EC2 instance and change the size of the root volume from its default size; we frequently create instances with single volumes of (say) 100GB for our users.

The ‘ec2’ module doesn’t have a parameter to define the EBS root volume size. Is this something that’s do-able? I’m not seeing an obvious way to do this in the boto docs.

Are there other ways to accomplish this: spin up an instance with a single volume of non-default size?

Thanks.

---

<div class="post-metadata">

**Author:** ![Chris\_Shenton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Chris\_Shenton](https://forum.ansible.com/u/Chris_Shenton)\
**Post date:** [January 15, 2014, 5:40pm UTC](https://forum.ansible.com/t/ec2-create-instance-with-non-default-root-volume-size/14350/2 "2014-01-15T17:40:41Z")

</div>

Doh, I see this pull request does exactly as I need, but looks like it was closed due to being Ubuntu-specific.  
[https://github.com/ansible/ansible/pull/4404](https://github.com/ansible/ansible/pull/4404)

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 15, 2014, 5:49pm UTC](https://forum.ansible.com/t/ec2-create-instance-with-non-default-root-volume-size/14350/3 "2014-01-15T17:49:15Z")

</div>

If you’d like to start that and go from there, that would be welcome!

---

<div class="post-metadata">

**Author:** ![Chris\_Shenton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Chris\_Shenton](https://forum.ansible.com/u/Chris_Shenton)\
**Post date:** [January 22, 2014, 6:03pm UTC](https://forum.ansible.com/t/ec2-create-instance-with-non-default-root-volume-size/14350/4 "2014-01-22T18:03:27Z")

</div>

I can take a whack at that but want to make sure that I’m pursuing a correct solution that will be accepted.

@electroniceagle has a fix that will let you specify the volume device name so it can accommodate non-Ubuntu-shaped OSes, and I think that’s a decent approach.

[https://github.com/ansible/ansible/pull/4404#issuecomment-29752476](https://github.com/ansible/ansible/pull/4404#issuecomment-29752476)

If it’s not, can you suggest a preferred way that’s more natural and less failure-prone?

Thanks.

---

<div class="post-metadata">

**Author:** ![willthames](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@willthames](https://forum.ansible.com/u/willthames)\
**Post date:** [January 23, 2014, 1:47pm UTC](https://forum.ansible.com/t/ec2-create-instance-with-non-default-root-volume-size/14350/5 "2014-01-23T13:47:11Z")

</div>

Have a look at  
[https://github.com/ansible/ansible/pull/4534](https://github.com/ansible/ansible/pull/4534)

It should do what you want (change the volume size of the root volume)

If it doesn’t, let me know in what way it fails and I’ll get it fixed.

Will
