From 77a60f1f68bf7a22bd940feb5a86b60f1baa7f3c Mon Sep 17 00:00:00 2001 From: abikouo <79859644+abikouo@users.noreply.github.com> Date: Wed, 26 May 2021 09:14:38 +0200 Subject: [PATCH] Update ec2_vol.py --- plugins/modules/ec2_vol.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/modules/ec2_vol.py b/plugins/modules/ec2_vol.py index c88fd18d9fc..db7aec0f443 100644 --- a/plugins/modules/ec2_vol.py +++ b/plugins/modules/ec2_vol.py @@ -109,6 +109,7 @@ description: - If set to C(yes), Multi-Attach will be enabled when creating the volume. - When you create a new volume, Multi-Attach is disabled by default. + - This parameter is supported with io1 and io2 volumes only. type: bool version_added: 2.0.0 author: "Lester Wade (@lwade)" @@ -198,10 +199,11 @@ # Create new volume with multi-attach enabled - amazon.aws.ec2_vol: - instance: XXXXXX - volume_size: 50 - device_name: sdd + zone: XXXXXX multi_attach: true + volume_size: 4 + volume_type: io1 + iops: 102 # Attach an existing volume to instance. The volume will be deleted upon instance termination. - amazon.aws.ec2_vol: