Dynamodb Table Encryption

AWS recently enabled encryption for tables. Wondering if Serverless framework has support for it? if so, how can I specify encryption=yes during table definition in SLS yaml file.

See the aws Cloudformation reference Here

example:

resources:
  Resources:
    usersTable:
      Type: AWS::DynamoDB::Table
      Properties:
        TableName: myUniqueTable
        AttributeDefinitions:
          - AttributeName: id
            AttributeType: S
        KeySchema:
          - AttributeName: id
            KeyType: HASH
        ProvisionedThroughput:
          ReadCapacityUnits: 1
          WriteCapacityUnits: 1
        SSESpecification:
          SSEEnabled: true

Enjoy

Thank you very much. I should have thought about looking at CF definitions before I posted.

1 Like