forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dynamodb): support for Customer-managed CMK (aws#7425)
Deprecated `serverSideEncryption` and introduced new `encryption` and `encryptionKey` properties to support Customer-Managed CMK on DynamoDB Tables. The purpose-specific `grant*` methods (`grantReadData`, ...) have been updated to automatically extend the relevant KMS key grants transparently, while the generic `grant` methods are only adding grants on the table or stream (depending on the `grant` method used) itself. The new `encryption` and `encryptionKey` properties are mutually exclusive with the now-deprecated `serverSideEncryption` property. Fixes aws#7142 Co-Authored-By: rmuller@amazon.com
- Loading branch information
1 parent
3dd21b9
commit ff8219b
Showing
10 changed files
with
1,675 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const READ_DATA_ACTIONS = [ | ||
'dynamodb:BatchGetItem', | ||
'dynamodb:GetRecords', | ||
'dynamodb:GetShardIterator', | ||
'dynamodb:Query', | ||
'dynamodb:GetItem', | ||
'dynamodb:Scan', | ||
]; | ||
export const KEY_READ_ACTIONS = [ | ||
'kms:Decrypt', | ||
'kms:DescribeKey', | ||
]; | ||
|
||
export const WRITE_DATA_ACTIONS = [ | ||
'dynamodb:BatchWriteItem', | ||
'dynamodb:PutItem', | ||
'dynamodb:UpdateItem', | ||
'dynamodb:DeleteItem', | ||
]; | ||
export const KEY_WRITE_ACTIONS = [ | ||
'kms:Encrypt', | ||
'kms:ReEncrypt*', | ||
'kms:GenerateDataKey*', | ||
]; | ||
|
||
export const READ_STREAM_DATA_ACTIONS = [ | ||
'dynamodb:DescribeStream', | ||
'dynamodb:GetRecords', | ||
'dynamodb:GetShardIterator', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.