Skip to content

dynamodb GlobalTable uses legacy 2017.11.29 API and cannot create 2019.11.21 replicas #2308

Description

@saatvik-chugh

What happened?

Creating a DynamoDB GlobalTable via provider-aws fails because the provider appears to use the legacy GlobalTable API model (2017.11.29) instead of the current DynamoDB global tables version (2019.11.21).

Observed error:

create failed: cannot create GlobalTable in AWS: ValidationException: One or more parameter values were invalid: DynamoDB global tables version 2017.11.29 is not supported. We recommend using DynamoDB global tables version 2019.11.21, instead of version 2017.11.29 (Legacy). status code: 400

This was previously reported in #979, but that issue was closed as stale/not planned. Opening a new issue because this is still blocking current usage.

How can we reproduce it?

Try to create a DynamoDB GlobalTable with replicas using provider-aws.

Conceptual example:

apiVersion: dynamodb.aws.crossplane.io/v1alpha1
kind: GlobalTable
spec:
  forProvider:
    region: us-east-1
    replicationGroup:
      - regionName: us-east-1
      - regionName: us-west-2

What environment did it happen in?

Provider version: v0.56.0 / v0.58.0
Crossplane version:
Kubernetes version:
AWS regions:
Table billing mode:

Expected behavior

Provider-aws should support DynamoDB global tables version 2019.11.21, where replicas are managed through the Table replica configuration / current AWS API model, rather than the legacy 2017.11.29 GlobalTable API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions