From 67cccc5d85767d17320d78b31c30b482e8d007d4 Mon Sep 17 00:00:00 2001 From: Anthony Wat Date: Sat, 24 Feb 2024 02:05:37 -0500 Subject: [PATCH] fix: Fix bad detect_and_copy_new_topics state mapping on read for aws_msk_replicator --- .changelog/35966.txt | 3 +++ internal/service/kafka/replicator.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/35966.txt diff --git a/.changelog/35966.txt b/.changelog/35966.txt new file mode 100644 index 00000000000..ce552eb861d --- /dev/null +++ b/.changelog/35966.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_msk_replicator: Fix incorrect `detect_and_copy_new_topics` attribute value from state read/refresh +``` diff --git a/internal/service/kafka/replicator.go b/internal/service/kafka/replicator.go index 36f4ad381c2..d6ae8bb18fc 100644 --- a/internal/service/kafka/replicator.go +++ b/internal/service/kafka/replicator.go @@ -564,7 +564,7 @@ func flattenTopicReplication(apiObject *types.TopicReplication) map[string]inter } if aws.ToBool(apiObject.DetectAndCopyNewTopics) { - tfMap["detect_and_copy_new_topics"] = apiObject.CopyAccessControlListsForTopics + tfMap["detect_and_copy_new_topics"] = apiObject.DetectAndCopyNewTopics } return tfMap