Creating an IAM policy to access AWS KMS resources
Aurora can access the AWS KMS keys used for encrypting their database backups. However, you must first create an IAM policy that provides the permissions that allow Aurora to access KMS keys.
The following policy adds the permissions required by Aurora to access KMS keys on your behalf.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "kms:Decrypt" ], "Resource": "arn:aws:kms:
<region>
:<123456789012>
:key/<key-ID>
" } ] }
You can use the following steps to create an IAM policy that provides the minimum required permissions for Aurora to access KMS keys on your behalf.
To create an IAM policy to grant access to your KMS keys
-
Open the IAM console
. -
In the navigation pane, choose Policies.
-
Choose Create policy.
-
On the Visual editor tab, choose Choose a service, and then choose KMS.
-
For Actions, choose Write, and then choose Decrypt.
-
Choose Resources, and choose Add ARN.
-
In the Add ARN(s) dialog box, enter the following values:
-
Region – Type the AWS Region, such as
us-west-2
. -
Account – Type the user account number.
-
Log Stream Name – Type the KMS key identifier.
-
-
In the Add ARN(s) dialog box, choose Add.
-
Choose Review policy.
-
Set Name to a name for your IAM policy, for example
AmazonRDSKMSKey
. You use this name when you create an IAM role to associate with your Aurora DB cluster. You can also add an optional Description value. -
Choose Create policy.
Complete the steps in Creating an IAM role to allow Amazon Aurora to access AWS services.