使用无服务器框架时,如何为DynamoDB表启用连续备份?
理想情况下,我将定义一些内容以serverless.yml
启用自动DynamoDB备份
它在一些文档中有点隐藏,但这可以通过PointInTimeRecoverySpecification
在resources
serverless.yml文件的部分中定义来完成,例如
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
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句