(aws-events-targets): SQSQueue target currently doesnt handle perms for encrypted queues #28257
Closed
1 of 2 tasks
Labels
@aws-cdk/aws-events-targets
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
Add another (optional) prop to sqsqueue event target props for encrypted sqs queues which adds correct permissions for events to use the sqs queue's KMS key.
Use Case
At the moment when using an sqs queue event target, in our case an imported sqs queue, if that queue is kms encrypted then currently the permissions that are created by adding the event target i.e sqs access policy dont include adding access to kms unless done so by accessing the queues master key and granting permissions outside of the event target. I feel it would be a quick win to include it as a prop.
Proposed Solution
By adding onto the current permissions grant logic, accessing the queues kms key and granting perms to the events service principal
Other Information
No response
Acknowledgements
CDK version used
2.10.0
Environment details (OS name and version, etc.)
EC2 Ubuntu Instance Running Ubuntu 22.04
The text was updated successfully, but these errors were encountered: