【问题标题】:How to update dynamodb table using cloud formation如何使用云形成更新 dynamodb 表
【发布时间】:2021-01-31 05:57:30
【问题描述】:

如何使用云形成为现有 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-”

【问题讨论】:

    标签: amazon-dynamodb amazon-cloudformation


    【解决方案1】:

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

    幸运的是,AWS::DynamoDB::Table 目前是其中一种资源类型

    要将其中一种受支持资源类型的现有资源导入 CloudFormation,必须使用更改集 as described here 导入它们

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-26
      • 1970-01-01
      • 1970-01-01
      • 2021-01-24
      • 2016-10-27
      • 2018-06-21
      • 1970-01-01
      • 2013-08-03
      相关资源
      最近更新 更多