Configuring server-side encryption for a queue using the Amazon SQS console
To protect the data in a queue’s messages, Amazon SQS has server-side encryption (SSE) enabled by default for all newly created queues. Amazon SQS integrates with the Amazon Web Services Key Management Service (Amazon Web Services KMS) to manage KMS keys for server-side encryption (SSE). For information about using SSE, see Encryption at rest in Amazon SQS.
The KMS key that you assign to your queue must have a key policy that includes permissions for all principals that are authorized to use the queue. For information, see Key Management.
If you aren't the owner of the KMS key, or if you log in with an account that doesn't
have kms:ListAliases
and kms:DescribeKey
permissions, you won't be
able to view information about the KMS key on the Amazon SQS console. Ask the owner of the
KMS key to grant you these permissions. For more information, see Key Management.
When you create or edit a queue, you can configure SSE-KMS.
To configure SSE-KMS for an existing queue (console)
Open the Amazon SQS console at https://console.aws.amazon.com/sqs/
. -
In the navigation pane, choose Queues.
-
Choose a queue, and then choose Edit.
-
Expand Encryption.
-
For Server-side encryption, choose Enabled (default).
Note
With SSE enabled, anonymous
SendMessage
andReceiveMessage
requests to the encrypted queue will be rejected. Amazon SQS security best practises recommend against using anonymous requests. If you wish to send anonymous requests to an Amazon SQS queue, make sure to disable SSE. -
Select AWS Key Management Service key (SSE-KMS).
The console displays the Description, the Account, and the KMS key ARN of the KMS key.
-
Specify the KMS key ID for the queue. For more information, see Key terms.
-
Choose the Choose a KMS key alias option.
-
The default key is the Amazon Web Services managed KMS key for Amazon SQS. To use this key, choose it from the KMS key list.
-
To use a custom KMS key from your Amazon Web Services account, choose it from the KMS key list. For instructions on creating custom KMS keys, see Creating Keys in the Amazon Web Services Key Management Service Developer Guide.
-
To use a custom KMS key that is not in the list, or a custom KMS key from another Amazon Web Services account, choose Enter the KMS key alias and enter the KMS key Amazon Resource Name (ARN).
-
-
(Optional) For Data key reuse period, specify a value between 1 minute and 24 hours. The default is 5 minutes. For more information, see Understanding the data key reuse period.
-
When you finish configuring SSE-KMS, choose Save.