From 6b5a0a0514affdcb3f4c17fc69b117b13bec9544 Mon Sep 17 00:00:00 2001 From: Gabriel PREDA Date: Mon, 7 Jul 2025 22:06:56 +0300 Subject: [PATCH 1/2] fix tagging on msk cluster creation --- plugins/modules/msk_cluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/modules/msk_cluster.py b/plugins/modules/msk_cluster.py index 5132ede011c..2cb4779f440 100644 --- a/plugins/modules/msk_cluster.py +++ b/plugins/modules/msk_cluster.py @@ -372,6 +372,7 @@ def prepare_create_options(module): "ClientSubnets": module.params["subnets"], "InstanceType": module.params["instance_type"], }, + "Tags": module.params["tags"], } if module.params["security_groups"] and len(module.params["security_groups"]) != 0: @@ -599,7 +600,7 @@ def create_or_update_cluster(client, module): if module.params["wait"]: wait_for_cluster_state(client, module, arn=cluster["ClusterArn"], state="ACTIVE") - changed |= update_cluster_tags(client, module, response["ClusterArn"]) + changed |= update_cluster_tags(client, module, response["ClusterArn"]) return changed, response From cac610596a435cc6fe6c446a1b9c78b0a149bf75 Mon Sep 17 00:00:00 2001 From: Gabriel PREDA Date: Mon, 7 Jul 2025 22:16:11 +0300 Subject: [PATCH 2/2] add fragment --- .../fragments/2324-fix_tags-on-msk-cluster_create-bug-2322.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelogs/fragments/2324-fix_tags-on-msk-cluster_create-bug-2322.yml diff --git a/changelogs/fragments/2324-fix_tags-on-msk-cluster_create-bug-2322.yml b/changelogs/fragments/2324-fix_tags-on-msk-cluster_create-bug-2322.yml new file mode 100644 index 00000000000..d2fcb012a90 --- /dev/null +++ b/changelogs/fragments/2324-fix_tags-on-msk-cluster_create-bug-2322.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - Fix tags on cluster creation (https://github.com/ansible-collections/community.aws/pull/2324). \ No newline at end of file