代码之家  ›  专栏  ›  技术社区  ›  Kevin Smith

如何在带有cloudformation的dynamodb上启用静态加密

  •  4
  • Kevin Smith  · 技术社区  · 6 年前

    我想知道是否可以使用cloudformation创建一个dynamodb表,但不需要加密。

    我已经找到了以下开发指南,但它只是告诉您如何使用控制台和AWS CLI创建表: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/encryption.tutorial.html

    从SDK看来,您需要在 SSEEnabled SSESpecification true 但是,这可以进入CloudInformation模板吗?如果是,在哪里?

    AWS::DynamoDB::Table

    1 回复  |  直到 6 年前
        1
  •  5
  •   Kirill    6 年前

    在模板中创建表时,应该能够将其添加到中:

    {
        "Type" : "AWS::DynamoDB::Table",
        "Properties" : {
          "AttributeDefinitions" : [ AttributeDefinition, ... ],
          "GlobalSecondaryIndexes" : [ GlobalSecondaryIndexes, ... ],
          "KeySchema" : [ KeySchema, ... ],
          "LocalSecondaryIndexes" : [ LocalSecondaryIndexes, ... ],
          "ProvisionedThroughput" : ProvisionedThroughput,
          "SSESpecification" : {
              "SSEEnabled": true
            },
          "StreamSpecification" : StreamSpecification,
          "TableName" : String,
          "Tags" : [ Resource Tag, ... ],
          "TimeToLiveSpecification" : TimeToLiveSpecification
        }
      }
    }
    

    以下是来自文档的链接: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html

    这可能是一个智能感知问题吗?