Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Ensure that SqsManagedSseEnabled (sqs_managed_sse_enabled) is al…
…ways passed to CreateQueue SQS API # Community Note Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request Closes: #22197 ## Summary Affected resource: `aws_sqs_queue` Seems that since 01 of September 2022 [CreateQueue SQS API](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html) changed and if **SqsManagedSseEnabled** parameter is not passed, SQS created as encrypted by default with `aws_sqs_queue` resource. Current logic in provider (internal/attrmap/attrmap.go, ResourceDataToAPIAttributesCreate) omit SqsManagedSseEnabled (sqs_managed_sse_enabled) if it's equal false. Which causes SQS to be created as encrypted and then it's changed to unencrypted on next apply. This change fixes it, but probably not in a best way.
- Loading branch information