Invalid DynamoDB billing mode

Specify a supported DynamoDB billing mode.

Description

DynamoDB BillingMode must be PAY_PER_REQUEST or PROVISIONED. Unsupported values can cause table creation or updates to fail.

Potential impact

An invalid billing mode can interrupt deployment.

Remediation

Choose a supported mode that suits traffic and cost requirements. Set ProvisionedThroughput when using PROVISIONED. If BillingMode is omitted, it defaults to PROVISIONED.

Examples

These excerpts replace the unsupported PayPal value with PAY_PER_REQUEST. The key schema and other table properties are omitted.

Before

yaml
Resources:
  Table:
    Type: AWS::DynamoDB::Table
    Properties:
      TableName: myTable
      BillingMode: PayPal

After

yaml
Resources:
  Table:
    Type: AWS::DynamoDB::Table
    Properties:
      TableName: myTable
      BillingMode: PAY_PER_REQUEST

References