Skip to content

Commit 27b3e64

Browse files
committed
add option throughput to argument block_device_mappings
1 parent 5ebe2d6 commit 27b3e64

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

changelogs/fragments/20240110-ec2_launch_template-refactor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ minor_changes:
33
- 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).
44
- 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).
55
- 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).
6+
- ec2_launch_template - Add suboption ``throughput`` to ``block_device_mappings`` argument (https://github.com/ansible-collections/community.aws/issues/1944).

plugins/modules/ec2_launch_template.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@
130130
volume_type:
131131
description: The volume type
132132
type: str
133+
throughput:
134+
description: >
135+
The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s.
136+
Valid Range - Minimum value of 125. Maximum value of 1000.
137+
type: int
138+
version_added: 8.1.0
133139
cpu_options:
134140
description:
135141
- Choose CPU settings for the EC2 instances that will be created with this template.
@@ -1134,6 +1140,7 @@ def main():
11341140
snapshot_id=dict(),
11351141
volume_size=dict(type="int"),
11361142
volume_type=dict(),
1143+
throughput=dict(type="int"),
11371144
),
11381145
),
11391146
no_device=dict(),

0 commit comments

Comments
 (0)