Skip to content

Commit

Permalink
Prepare module ec2_launch_template for promotion (ansible-collections…
Browse files Browse the repository at this point in the history
…#2164)

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 ansible-collections#176)
Add the possibility to tag specific resources, not always instance and volume (Closes [ansible-collections#48](ansible-collections#48, Closes ansible-collections#2083)
Support EBS Throughput (Closes ansible-collections#1944)
Fix issue occurring when launch template contains more than 200 versions (Closes ansible-collections#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 and alinabuzachis committed Oct 25, 2024
1 parent ab86b4a commit d5a0a10
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 d5a0a10

Please sign in to comment.