Amazon dynamodb 无服务器dynamodb支持连续备份

Amazon dynamodb 无服务器dynamodb支持连续备份,amazon-dynamodb,serverless-framework,aws-serverless,serverless-plugins,Amazon Dynamodb,Serverless Framework,Aws Serverless,Serverless Plugins,在使用无服务器框架时,如何为DynamoDB表启用连续备份 理想情况下,我会在serverless.yml中定义一些可以启用自动DynamoDB备份的内容它在一些文档中有点隐藏,但这可以通过在serverless.yml文件的参考资料部分定义PointInTimeRecoverySpecification来实现,例如 resources: Resources: developers: Type: AWS::DynamoDB::Table Properties:

在使用无服务器框架时,如何为DynamoDB表启用连续备份


理想情况下,我会在
serverless.yml
中定义一些可以启用自动DynamoDB备份的内容

它在一些文档中有点隐藏,但这可以通过在serverless.yml文件的
参考资料
部分定义
PointInTimeRecoverySpecification
来实现,例如

resources:
  Resources:
    developers:
      Type: AWS::DynamoDB::Table
      Properties:
        TableName: myTable
        AttributeDefinitions:
          - AttributeName: myId
            AttributeType: S
        KeySchema:
          - AttributeName: myId
            KeyType: HASH
        ProvisionedThroughput:
          ReadCapacityUnits: 1
          WriteCapacityUnits: 1
        PointInTimeRecoverySpecification:
          PointInTimeRecoveryEnabled: true