Skip to content

Experiencing an error when creating global table and createStack is false #18

@funkel1989

Description

@funkel1989

Error

CreateGlobalTable: Starting setting up global tables...
CreateGlobalTable: Global table doesn't exist...
CreateGlobalTable: Creating new table devtable in us-east-2 region...
CreateGlobalTable: Creating new table devtable in us-west-2 region...
CreateGlobalTable: Failed to setup global table. Error There were 2 validation errors:
* UnexpectedParameter: Unexpected key 'NumberOfDecreasesToday' found in params.GlobalSecondaryIndexes[0].ProvisionedThroughput
* UnexpectedParameter: Unexpected key 'NumberOfDecreasesToday' found in params.GlobalSecondaryIndexes[1].ProvisionedThroughput

These tables use bill per request and have no ProvisionedThroughput on the table or the GSI

Table Example:

Table:
      Type: AWS::DynamoDB::Table
      Properties:
        PointInTimeRecoverySpecification:
          PointInTimeRecoveryEnabled: true
        StreamSpecification:
          StreamViewType: NEW_AND_OLD_IMAGES
        TableName: ${self:custom.serviceName}
        AttributeDefinitions:
          - AttributeName: Id
            AttributeType: S
          - AttributeName: AnotherId
            AttributeType: S
          - AttributeName: CreatedDateTime
            AttributeType: S
          - AttributeName: YetAnotherId
            AttributeType: S
          - AttributeName: somethingelsesId
            AttributeType: S
          - AttributeName: fakeId
            AttributeType: S
        KeySchema:
          - AttributeName: AnotherId
            KeyType: HASH
          - AttributeName: CreatedDateTime
            KeyType: RANGE
        BillingMode: PAY_PER_REQUEST
        GlobalSecondaryIndexes:
          - IndexName: Id_AnotherId_IDX
            KeySchema:
              - AttributeName: AnotherId_YetAnotherId
                KeyType: HASH
              - AttributeName: CreatedDateTime
                KeyType: RANGE
            Projection:
              ProjectionType: 'ALL'
          - IndexName: AnotherId_YetAnotherId_IDX
            KeySchema:
              - AttributeName: Id
                KeyType: HASH
              - AttributeName: FakeId
                KeyType: RANGE
            Projection:
              ProjectionType: 'ALL'

Obviously the above field names and everything going along with it has been made up but the actual implementation works when the table is deployed without this plugin.

I am also able to create Global tables from the aws Console without an issue.

Please assist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions