amazon-dynamodb - 如何通过 cloudformation 创建/添加加密/密钥到发电机表?
问题描述
请参阅下面的示例 dynamodb 表和 cloudformation 模板。当我创建下表时,encrpytion aws 会采取什么措施来保护我的数据,如果可以的话?如果不是,我如何在下面的模板中指定我想用 aws 本身提供的密钥加密我的数据,如果可能的话。如果不是我假设,我还需要为此添加一个关键资源。
AWSTemplateFormatVersion: "2010-09-09"
Resources:
myDynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
-
AttributeName: "product"
AttributeType: "S"
-
AttributeName: "model"
AttributeType: "S"
KeySchema:
-
AttributeName: "product"
KeyType: "HASH"
-
AttributeName: "Model"
KeyType: "RANGE"
ProvisionedThroughput:
ReadCapacityUnits: "5"
WriteCapacityUnits: "5"
TableName: "InfoTable"
解决方案
如此处所述,将一个添加SSESpecification
到您的表中。所以:
AWSTemplateFormatVersion: "2010-09-09"
Resources:
myDynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
-
AttributeName: "product"
AttributeType: "S"
-
AttributeName: "model"
AttributeType: "S"
KeySchema:
-
AttributeName: "product"
KeyType: "HASH"
-
AttributeName: "Model"
KeyType: "RANGE"
ProvisionedThroughput:
ReadCapacityUnits: "5"
WriteCapacityUnits: "5"
TableName: "InfoTable"
SSESpecification:
SSEEnabled: 'true'
这将使用 AWS 托管的加密密钥对表进行加密。
推荐阅读
- siddhi - 将事件消息与预定义字符串进行比较的最佳方法
- php - 如何覆盖 Laravel 模型属性?
- excel - 返回列的幂查询中的条件值,如果值等于其他列的最大值
- flutter - Flutter Bloc:状态转换
- angular - 如何在 Angular 表单输入字段中绑定来自 api 响应的数据
- oracle - 许多实例上的 Spring Boot 石英
- python - 如何将输入从表单发送到 sqlite3 数据库
- php - 在 PHP 中解码 base64 与 html 混合
- mediawiki - 编辑 MediaWiki 元数据
- php - 如何使用php在mysql中插入动态输入值同时将一个表复制到另一个表