# aws ec2 add new ebs volume error

**URL:** <https://forum.ansible.com/t/aws-ec2-add-new-ebs-volume-error/32168>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [February 7, 2020, 3:26am UTC](https://forum.ansible.com/t/aws-ec2-add-new-ebs-volume-error/32168 "2020-02-07T03:26:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy.hung](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Post date:** [February 7, 2020, 3:26am UTC](https://forum.ansible.com/t/aws-ec2-add-new-ebs-volume-error/32168/1 "2020-02-07T03:26:11Z")

</div>

Dear all:

please help me thanks.

- name: Create New EBS volume  
ec2\_vol:  
aws\_access\_key: “{{ aws\_access\_key }}”  
aws\_secret\_key: “{{ aws\_secret\_key }}”  
instance\_id: “{{ instance\_id }}”  
volume\_size: “{{ volume\_size }}”  
device\_name: “{{ device\_name}}”  
region: “{{ region }}”  
volume\_type: “{{ volume\_type }}”  
register: ec2\_vol

[WARNING]: Found variable using reserved name: name

PLAY [localhost] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Create Snapshot EC2] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [localhost]

TASK [Create New EBS volume] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “Unsupported parameters for (ec2\_vol) module: instance\_id Supported parameters include: aws\_access\_key, aws\_secret\_key, debug\_botocore\_endpoint\_logs, delete\_on\_termination, device\_name, ec2\_url, encrypted, id, instance, iops, kms\_key\_id, name, profile, region, security\_token, snapshot, state, tags, validate\_certs, volume\_size, volume\_type, zone”}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=1 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

---

<div class="post-metadata">

**Author:** ![Work\_Email](https://avatars.discourse-cdn.com/v4/letter/w/34f0e0/32.png) [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Post date:** [February 7, 2020, 3:35am UTC](https://forum.ansible.com/t/aws-ec2-add-new-ebs-volume-error/32168/2 "2020-02-07T03:35:27Z")

</div>

(ec2\_vol) the module is not supported by anisble

---

<div class="post-metadata">

**Author:** ![sandy.hung](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Post date:** [February 7, 2020, 3:55am UTC](https://forum.ansible.com/t/aws-ec2-add-new-ebs-volume-error/32168/3 "2020-02-07T03:55:27Z")

</div>

so I need use module in add volume?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 7, 2020, 5:40am UTC](https://forum.ansible.com/t/aws-ec2-add-new-ebs-volume-error/32168/4 "2020-02-07T05:40:46Z")

</div>

Just read the error message. It literally says what’s not right:

Unsupported parameters for (ec2\_vol) module: instance\_id

I’ve never used the module but from the docs you can see that this is the parameter you need to use:

[https://docs.ansible.com/ansible/latest/modules/ec2\_vol\_module.html#parameter-instance](https://docs.ansible.com/ansible/latest/modules/ec2_vol_module.html#parameter-instance)
