Using Console
Using CLI
<your_queue_url>
with your SQS queue URL and <your_cmk_key_id>
with the KeyId of the CMK you created.After running the command, your SQS queue should now be using a CMK for server-side encryption. You can verify this by using the get-queue-attributes
command:Using Python
create_key
function:
set_queue_attributes
function to set the KMSMasterKeyId attribute to the ID of the CMK you created: