Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamoDB "OnDemandThroughput" property reported as invalid #3238

Closed
axthosarouris opened this issue May 13, 2024 · 5 comments
Closed

DynamoDB "OnDemandThroughput" property reported as invalid #3238

axthosarouris opened this issue May 13, 2024 · 5 comments

Comments

@axthosarouris
Copy link

axthosarouris commented May 13, 2024

CloudFormation Lint Version

0.87.2

What operating system are you using?

Ubuntu

Describe the bug

DynamoDB "OnDemandThroughput" property reported as invalid

Expected behavior

Not reported as invalid

Reproduction template

  EntitiesTable:
    Type: AWS::DynamoDB::Table
    Properties:
      AttributeDefinitions:
        - AttributeName: PK0
          AttributeType: S
        - AttributeName: SK0
          AttributeType: S
        - AttributeName: PK1
          AttributeType: S
        - AttributeName: SK1
          AttributeType: S
        - AttributeName: PK2
          AttributeType: S
        - AttributeName: SK2
          AttributeType: S
      BillingMode: PAY_PER_REQUEST
      OnDemandThroughput:
        MaxReadRequestUnits: 1000
        MaxWriteRequestUnits: 200
      KeySchema:
        - AttributeName: PK0
          KeyType: HASH
        - AttributeName: SK0
          KeyType: RANGE
      GlobalSecondaryIndexes:
        - IndexName: EntriesByExternalId
          Projection:
            ProjectionType: ALL
          KeySchema:
            - AttributeName: PK1
              KeyType: HASH
            - AttributeName: SK1
              KeyType: RANGE
        - IndexName: EntriesByDeletedStatus
          Projection:
            ProjectionType: ALL
          KeySchema:
            - AttributeName: PK2
              KeyType: HASH
            - AttributeName: SK2
              KeyType: RANGE
      PointInTimeRecoverySpecification:
        PointInTimeRecoveryEnabled: True
      TableClass: STANDARD
      StreamSpecification:
        StreamViewType: NEW_AND_OLD_IMAGES
      TimeToLiveSpecification:
        AttributeName: timeToLive
        Enabled: False # Make True when we want to delete
      TableName: !Sub Subscribers-Table-${Suffix}
      Tags:
        - Key: Name
          Value: !Sub '${AWS::StackName}-EntitiesTable'
@kddejong
Copy link
Contributor

Have you deployed this template into one of these regions? Since these aren't in the schemas for those regions there is a high likely hood they will fail validation so I want to make sure they are working.

@axthosarouris
Copy link
Author

Have you deployed this template into one of these regions? Since these aren't in the schemas for those regions there is a high likely hood they will fail validation so I want to make sure they are working.

I have deployed it in eu-west-1

@kddejong
Copy link
Contributor

When running cfn-lint --regions eu-west-1 -- template.yaml you got an error with OnDemandThroughput? It looks like that this value is already in the specs for that region.

@axthosarouris
Copy link
Author

The error was on our side. Thanks for your time?

@kddejong
Copy link
Contributor

No worries at all. Thanks for talking through it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants