Skip to content

Commit

Permalink
Changelog and test
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Jul 1, 2022
1 parent 7c7435f commit 2ea4c14
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/239-launch_template-source-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- ec2_launch_template - Adds support for specifying the ``source_version`` upon which template updates are based (https://github.com/ansible-collections/community.aws/pull/239).
18 changes: 18 additions & 0 deletions tests/integration/targets/ec2_launch_template/tasks/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@
- lt.default_version == 3
- lt.latest_version == 3

- name: create new template version based on an old version
ec2_launch_template:
name: "{{ resource_prefix }}-simple"
cpu_options:
core_count: 1
threads_per_core: 1
source_version: 1
register: lt

- name: instance with cpu_options created with the right options
assert:
that:
- lt is success
- lt is changed
- lt.default_version == 4
- lt.latest_version == 4
- lt.latest_template.launch_template_data.instance_type == "c4.large"

always:
- name: delete the template
ec2_launch_template:
Expand Down

0 comments on commit 2ea4c14

Please sign in to comment.