Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SQS queue encryption types selection #2575

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

tal-lederman-dy
Copy link
Contributor

Description

sqs_managed_sse_enabled and kms_master_key_id cannot coexist. prior to this fix, if queue_managed_sse_enabled was set to false, then sqs_managed_sse_enabled would be set to false as well, instead null, as it should be in this case.

Motivation and Context

I have tried to change an SQS queue's encryption from "SSE-SQS" to "SSE-KMS", using the karpenter submodule and failed with an error saying "sqs_managed_sse_enabled": conflicts with "kms_master_key_id".
This fixes the issue.

Breaking Changes

None known.

How Has This Been Tested?

I have successfully deployed with this change in my environment, where SQS queues are managed by the karpenter submodule for about 2 months now.
I have executed pre-commit run -a on my pull request

`sqs_managed_sse_enabled` and `kms_master_key_id` cannot coexist. prior to this fix, if `queue_managed_sse_enabled` was set to `false`, then `sqs_managed_sse_enabled` would be set to false as well, instead `null`, as it should be in this case.
@tal-lederman-dy tal-lederman-dy changed the title fix(karpenter): fix sqs queue encryption types selection Fix SQS queue encryption types selection Apr 17, 2023
@tal-lederman-dy tal-lederman-dy changed the title Fix SQS queue encryption types selection Fix: SQS queue encryption types selection Apr 17, 2023
@tal-lederman-dy tal-lederman-dy changed the title Fix: SQS queue encryption types selection fix: SQS queue encryption types selection Apr 17, 2023
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense - thank you!

@bryantbiggs bryantbiggs merged commit 969c7a7 into terraform-aws-modules:master Apr 18, 2023
antonbabenko pushed a commit that referenced this pull request Apr 18, 2023
### [19.13.1](v19.13.0...v19.13.1) (2023-04-18)

### Bug Fixes

* SQS queue encryption types selection ([#2575](#2575)) ([969c7a7](969c7a7))
@antonbabenko
Copy link
Member

This PR is included in version 19.13.1 🎉

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants