Skip to content

Commit

Permalink
Prepare module ec2_launch_template for promotion (#2164)
Browse files Browse the repository at this point in the history
SUMMARY

Depends-On: ansible-collections/amazon.aws#2319

Add some type hint for the module
Use shared code from amazon.aws.plugins.module_utils.ec2
Add the possibility to delete specific version of a launch template
Add support for tagging for launch template resource (Closes #176)
Add the possibility to tag specific resources, not always instance and volume (Closes [#48](#48, Closes #2083)
Support EBS Throughput (Closes #1944)
Fix issue occurring when launch template contains more than 200 versions (Closes #2131)


ISSUE TYPE


Feature Pull Request

COMPONENT NAME

ec2_launch_template

Reviewed-by: Alina Buzachis
Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS <[email protected]>
  • Loading branch information
abikouo authored Oct 18, 2024
1 parent 7dabfcc commit 40d61f0
Show file tree
Hide file tree
Showing 13 changed files with 2,397 additions and 738 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
breaking_changes:
- ec2_launch_template - Tags defined using option ``tags`` are now applied to the launch template resources not the resource created using this launch template (https://github.com/ansible-collections/community.aws/issues/176).
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 suboption ``throughput`` to ``block_device_mappings`` argument (https://github.com/ansible-collections/community.aws/issues/1944).
- ec2_launch_template - Add option ``tag_specifications`` to define tags to be applied to the resources created with the launch template (https://github.com/ansible-collections/community.aws/issues/176).
- ec2_launch_template - Add support ``purge_tags`` parameter (https://github.com/ansible-collections/community.aws/issues/176).
1,404 changes: 1,093 additions & 311 deletions plugins/modules/ec2_launch_template.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tests/integration/targets/ec2_launch_template/aliases
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
cloud/aws
time=3m
ec2_launch_template_info

This file was deleted.

Loading

0 comments on commit 40d61f0

Please sign in to comment.