From ab559c46294b890c5ccae4203d227527eceabd21 Mon Sep 17 00:00:00 2001 From: claudioiuliano <17640268+claudioiuliano@users.noreply.github.com> Date: Tue, 27 Aug 2019 01:37:00 +0200 Subject: [PATCH] Remove 'network-interface' for tag_specifications (#53398) * Remove 'network-interface' for tag_specifications https://github.com/aws/aws-cli/issues/2865 * changelog --- changelogs/fragments/53398-fix-ec2_launch_template-tags.yaml | 2 ++ lib/ansible/modules/cloud/amazon/ec2_launch_template.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/53398-fix-ec2_launch_template-tags.yaml diff --git a/changelogs/fragments/53398-fix-ec2_launch_template-tags.yaml b/changelogs/fragments/53398-fix-ec2_launch_template-tags.yaml new file mode 100644 index 00000000000..0a2b6f5d20e --- /dev/null +++ b/changelogs/fragments/53398-fix-ec2_launch_template-tags.yaml @@ -0,0 +1,2 @@ +bugfixes: + - ec2_launch_template - Only 'volume' and 'instance' are valid resource types for tag specifications. diff --git a/lib/ansible/modules/cloud/amazon/ec2_launch_template.py b/lib/ansible/modules/cloud/amazon/ec2_launch_template.py index 93abfbfacf1..85a269e5353 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_launch_template.py +++ b/lib/ansible/modules/cloud/amazon/ec2_launch_template.py @@ -382,7 +382,7 @@ def params_to_launch_data(module, template_params): in template_params['tags'].items() ] } - for r_type in ('instance', 'network-interface', 'volume') + for r_type in ('instance', 'volume') ] del template_params['tags'] if module.params.get('iam_instance_profile'):