# Dynamodb Table Encryption

**URL:** <https://forum.serverless.com/t/dynamodb-table-encryption/3790>\
**Category:** Serverless Framework\
**Created:** [February 16, 2018, 4:40pm UTC](https://forum.serverless.com/t/dynamodb-table-encryption/3790 "2018-02-16T16:40:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgali](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/pgali/32/1651_2.png) [@pgali](https://forum.serverless.com/u/pgali)\
**Post date:** [February 16, 2018, 4:40pm UTC](https://forum.serverless.com/t/dynamodb-table-encryption/3790/1 "2018-02-16T16:40:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bfieber](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bfieber/32/653_2.png) [@bfieber](https://forum.serverless.com/u/bfieber)\
**Post date:** [February 16, 2018, 7:10pm UTC](https://forum.serverless.com/t/dynamodb-table-encryption/3790/2 "2018-02-16T19:10:06Z")

</div>

See the aws Cloudformation reference [Here](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ssespecification)

example:

```auto
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

---

<div class="post-metadata">

**Author:** ![pgali](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/pgali/32/1651_2.png) [@pgali](https://forum.serverless.com/u/pgali)\
**Post date:** [February 16, 2018, 8:05pm UTC](https://forum.serverless.com/t/dynamodb-table-encryption/3790/3 "2018-02-16T20:05:51Z")

</div>

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