diff --git a/changelogs/fragments/362-ec2_vol-add-multi-attach-parameter.yml b/changelogs/fragments/362-ec2_vol-add-multi-attach-parameter.yml index fcfb749dbd7..0dfcc6c9429 100644 --- a/changelogs/fragments/362-ec2_vol-add-multi-attach-parameter.yml +++ b/changelogs/fragments/362-ec2_vol-add-multi-attach-parameter.yml @@ -1,3 +1,3 @@ minor_changes: - ec2_vol - add parameter ``multi_attach`` to support Multi-Attach on volume creation/update (https://github.com/ansible-collections/amazon.aws/pull/362). -- ec2_vol_info - return ``attachment_set`` is now a list of attachments with Multi-Attach support on disk. (https://github.com/ansible-collections/amazon.aws/pull/362) +- ec2_vol_info - return ``attachment_set`` is now a list of attachments with Multi-Attach support on disk. (https://github.com/ansible-collections/amazon.aws/pull/362). diff --git a/plugins/modules/ec2_vol.py b/plugins/modules/ec2_vol.py index 7a5dd4afd99..129aaec66d8 100644 --- a/plugins/modules/ec2_vol.py +++ b/plugins/modules/ec2_vol.py @@ -489,7 +489,6 @@ def create_volume(module, ec2_conn, zone): if throughput: additional_params['Throughput'] = int(throughput) - if multi_attach is True: if volume_type not in ("io1", "io2"): module.warn("multi_attach is supported with io1 and io2 volumes only.") diff --git a/tests/integration/targets/ec2_vol/tasks/tests.yml b/tests/integration/targets/ec2_vol/tasks/tests.yml index 938152e9ce0..1b607c92914 100644 --- a/tests/integration/targets/ec2_vol/tasks/tests.yml +++ b/tests/integration/targets/ec2_vol/tasks/tests.yml @@ -609,6 +609,23 @@ debug: var: vol_facts + - name: Read volume information to validate throughput + ec2_vol_info: + filters: + volume-id: "{{ gp3_volume.volume_id }}" + register: verify_throughput + + - name: throughput must be equal to 130 + assert: + that: + - v.throughput == 130 + vars: + v: "{{ verify_throughput.volumes[0] }}" + + - name: print out facts + debug: + var: vol_facts + - name: increase throughput ec2_vol: volume_size: 7