# gp2 volumes with ec2\_vol

**URL:** <https://forum.ansible.com/t/gp2-volumes-with-ec2-vol/16778>\
**Category:** Ansible Project\
**Created:** [November 13, 2014, 8:43pm UTC](https://forum.ansible.com/t/gp2-volumes-with-ec2-vol/16778 "2014-11-13T20:43:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yves\_Dorfsman](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Post date:** [November 13, 2014, 8:43pm UTC](https://forum.ansible.com/t/gp2-volumes-with-ec2-vol/16778/1 "2014-11-13T20:43:45Z")

</div>

Is it possible to provision gp2 volume (new SSD standard) with ec2\_vol?  
If so, what's the syntax?

Thanks.

---

<div class="post-metadata">

**Author:** ![Yves\_Dorfsman](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Post date:** [November 13, 2014, 9:40pm UTC](https://forum.ansible.com/t/gp2-volumes-with-ec2-vol/16778/2 "2014-11-13T21:40:05Z")

</div>

We managed to get them created as gp2, with the “ec2” module, looks like the “ec2\_vol” module cannot do that.

Now, next issue: How can you tag volumes created via the “ec2” module (with “ec2\_vol”, you could register the volumes, then tag them, but I can’t seem to be able to register volumes with the “ec2” module) ??

---

<div class="post-metadata">

**Author:** ![Ehtesh\_Choudhury](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@Ehtesh\_Choudhury](https://forum.ansible.com/u/Ehtesh_Choudhury)\
**Post date:** [November 13, 2014, 10:59pm UTC](https://forum.ansible.com/t/gp2-volumes-with-ec2-vol/16778/3 "2014-11-13T22:59:50Z")

</div>

Could you show an example of how you set up the gp2 partitions with the ec2 module? Of the top of my head, I don’t remember being able to configure EBS volumes from the ec2 module.

---

<div class="post-metadata">

**Author:** ![Yves\_Dorfsman](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Post date:** [November 14, 2014, 11:09pm UTC](https://forum.ansible.com/t/gp2-volumes-with-ec2-vol/16778/4 "2014-11-14T23:09:30Z")

</div>

New in version 1.5 according to the documentation:

[http://docs.ansible.com/ec2\_module.html](http://docs.ansible.com/ec2_module.html)

I wish it were better documented though, it’s not clear which key you can use in a given volume dictionary. Here is one of the example from the page, which we followed, it worked, but as mentionned, we haven’t managed to set a label (name) on the volume:

```auto
local_action:
    module: ec2
    key_name: mykey
    group: webserver
    instance_type: m1.large
    image: ami-6e649707
    wait: yes
    wait_timeout: 500
    volumes:
    - device_name: /dev/sdb
      snapshot: snap-abcdef12
      device_type: io1
      iops: 1000
      volume_size: 100
      delete_on_termination: true

```

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [November 17, 2014, 8:58pm UTC](https://forum.ansible.com/t/gp2-volumes-with-ec2-vol/16778/5 "2014-11-17T20:58:54Z")

</div>

Pull requests to enhance docs would be welcome - we’re staging a hackfest to provide some better tutorials soon, but to some extent what keys are valid is a function of which Boto libraries you have.

So mostly it’s showing examples
