cdk-from-cfn icon indicating copy to clipboard operation
cdk-from-cfn copied to clipboard

Bug: WarmThroughput unrecognized as a valid property of AWS::DynamoDB::Table

Open fibert opened this issue 10 months ago • 1 comments

When trying to use cdk migrate with a WarmThroughput attribute the migration fails with the following error:

 ❌  Migrate failed for `[Name]`: [Name]Stack could not be generated because WarmThroughput is not a valid property for resource DynamoDBTableResumesitedevvisitorcount of type AWS::DynamoDB::Table

CDK's CfnTable supports WarmThroughput.

When deleting this attribute, the migration is successful


My CloudFormation template was generate by CloudFormation IaC Generator, and contains the following:

  DynamoDBTableResumesitedevvisitorcount:
    UpdateReplacePolicy: "Retain"
    Type: "AWS::DynamoDB::Table"
    DeletionPolicy: "Retain"
    Properties:
      SSESpecification:
        SSEEnabled: false
      TableName: "resume-site-dev-visitor-count"
      AttributeDefinitions:
      - AttributeType: "S"
        AttributeName: "id"
      ContributorInsightsSpecification:
        Enabled: false
      BillingMode: "PAY_PER_REQUEST"
      PointInTimeRecoverySpecification:
        PointInTimeRecoveryEnabled: true
        RecoveryPeriodInDays: 35
      KeySchema:
      - KeyType: "HASH"
        AttributeName: "id"
      WarmThroughput:
        ReadUnitsPerSecond: 12000
        WriteUnitsPerSecond: 4000
      DeletionProtectionEnabled: false
      Tags:
      - Value: "dev"
        Key: "Environment"
      - Value: "Resume-Site"
        Key: "Project"
      - Value: "Terraform"
        Key: "ManagedBy"
      TimeToLiveSpecification:
        Enabled: false

fibert avatar Apr 28 '25 11:04 fibert

Likely related to https://github.com/cdklabs/cdk-from-cfn/issues/771 and requiring update of cdk-from-cfn in the CLI.

mrgrain avatar Apr 29 '25 08:04 mrgrain

Same as https://github.com/cdklabs/cdk-from-cfn/issues/919 closing in favor of the other issue

mrgrain avatar Jun 13 '25 16:06 mrgrain