-2
DynamoDbTableKmsKey:
    Type: AWS::KMS::Key

Table1:
    Type: AWS::DynamoDB::Table
    Properties:
      SSESpecification:
        SSEEnabled: True
        SSEType: KMS
        KMSMasterKeyId: !Ref DynamoDbTableKmsKey

Table2:
    Type: AWS::DynamoDB::Table
    Properties:
      SSESpecification:
        SSEEnabled: True
        SSEType: KMS
        KMSMasterKeyId: !Ref DynamoDbTableKmsKey

I've been looking on the aws documentation but I cannot see if it is not a good idea or a good practice or if it is possible.

Thank you very much

Mondy
  • 17
  • 3

1 Answers1

0

Yes you can use the same key for multiple tables, and there is nothing wrong with doing so as you can define a fine grained policy on the key which can limit the access to each table independently.

Leeroy Hannigan
  • 11,409
  • 3
  • 14
  • 31