gpt4 book ai didi

amazon-dynamodb - 如何使用云形成更新 dynamodb 表

转载 作者:行者123 更新时间:2023-12-03 07:42:02 30 4
gpt4 key购买 nike

如何使用云形成为现有 dynamodb 表启用“PointInTimeRecoverySpecification”。我尝试过如下:

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-”

最佳答案

While the list is expanding , only some resource types currently support importing existing resources into CloudFormation

幸运的是,AWS::DynamoDB::Table目前是这些资源类型之一

要将这些支持的资源类型之一的现有资源导入 CloudFormation,必须使用更改集 as described here 导入它们。

关于amazon-dynamodb - 如何使用云形成更新 dynamodb 表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64393773/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com