From 5b7d4f81e7aa4f66b08983c317b8e5676b738c2c Mon Sep 17 00:00:00 2001 From: abikouo Date: Mon, 7 Oct 2024 12:32:09 +0200 Subject: [PATCH] add option throughput to argument block_device_mappings --- .../fragments/20240110-ec2_launch_template-refactor.yml | 1 + plugins/modules/ec2_launch_template.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/changelogs/fragments/20240110-ec2_launch_template-refactor.yml b/changelogs/fragments/20240110-ec2_launch_template-refactor.yml index 402394935dd..f1f145f8226 100644 --- a/changelogs/fragments/20240110-ec2_launch_template-refactor.yml +++ b/changelogs/fragments/20240110-ec2_launch_template-refactor.yml @@ -3,3 +3,4 @@ minor_changes: - ec2_launch_template - Refactor module to use shared code from ``amazon.aws.plugins.module_utils.ec2`` and update ``RETURN`` block (https://github.com/ansible-collections/community.aws/pull/2164). - ec2_launch_template - Add the possibility to delete specific versions of a launch template using ``versions_to_delete`` (https://github.com/ansible-collections/community.aws/pull/2164). - ec2_launch_template - Add support for template tags via ``template_tags`` and ``purge_template_tags`` options (https://github.com/ansible-collections/community.aws/issues/176). + - ec2_launch_template - Add suboption ``throughput`` to ``block_device_mappings`` argument (https://github.com/ansible-collections/community.aws/issues/1944). diff --git a/plugins/modules/ec2_launch_template.py b/plugins/modules/ec2_launch_template.py index edeefaa0cc2..d6c5890c30d 100644 --- a/plugins/modules/ec2_launch_template.py +++ b/plugins/modules/ec2_launch_template.py @@ -130,6 +130,12 @@ volume_type: description: The volume type type: str + throughput: + description: > + The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s. + Valid Range - Minimum value of 125. Maximum value of 1000. + type: int + version_added: 8.1.0 cpu_options: description: - Choose CPU settings for the EC2 instances that will be created with this template. @@ -1134,6 +1140,7 @@ def main(): snapshot_id=dict(), volume_size=dict(type="int"), volume_type=dict(), + throughput=dict(type="int"), ), ), no_device=dict(),