在使用无服务器框架时,如何启用DynamoDB表的连续备份?
理想情况下,我应该在支持自动DynamoDB备份的serverless.yml
中定义一些内容
发布于 2019-04-03 16:26:00
它在几个文档中有一点隐藏,但这可以通过在serverless.yml文件的resources
部分定义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
https://stackoverflow.com/questions/55499975
复制相似问题