Amazon dynamodb 如何使用云形成更新dynamodb表
如何通过使用云形成为现有dynamodb表启用“PointInTimeRecoverySpecification”。 我试过如下方法:Amazon dynamodb 如何使用云形成更新dynamodb表,amazon-dynamodb,amazon-cloudformation,Amazon Dynamodb,Amazon Cloudformation,如何通过使用云形成为现有dynamodb表启用“PointInTimeRecoverySpecification”。 我试过如下方法: Resources: mytableenablerecovery: Properties: AttributeDefinitions: - AttributeName: ArtistId AttributeType: S KeySchema:
Resources:
mytableenablerecovery:
Properties:
AttributeDefinitions:
-
AttributeName: ArtistId
AttributeType: S
KeySchema:
-
AttributeName: ArtistId
KeyType: HASH
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: true
ProvisionedThroughput:
ReadCapacityUnits: "5"
WriteCapacityUnits: "5"
TableName: mytablename123
Type: "AWS::DynamoDB::Table"
但如果不存在,它将创建新表,否则将抛出错误“mytablename123已存在于堆栈中arn:aws:cloudformation:us east-”
幸运的是,当前是这些资源类型之一
要将这些支持的资源类型之一的现有资源导入CloudFormation,必须使用变更集导入这些资源