Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feature request: DynamoDB Streams for global tables #7405

Open
@viren-nadkarni

Description

@viren-nadkarni

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

It must be possible to access DynamoDB Streams in all regions where a global DynamoDB table is replicated.

Currently this is not supported.

# Create a table
$ awslocal dynamodb create-table \
    --table-name global01 \
    --key-schema AttributeName=id,KeyType=HASH \
    --attribute-definitions AttributeName=id,AttributeType=S \
    --billing-mode PAY_PER_REQUEST \
    --region ap-south-1

# Create replicas
$ awslocal dynamodb update-table \
    --table-name global01 \
    --replica-updates '[{"Create": {"RegionName": "eu-central-1"}}]' \
    --region ap-south-1


# Configure streams
$ awslocal dynamodb update-table \
    --table-name global01 \
    --stream-specification '{"StreamEnabled": true, "StreamViewType": "NEW_IMAGE"}' \
    --region ap-south-1

# Ensure table is replicated
$ awslocal dynamodb describe-table --table-name global01 --query 'Table.StreamSpecification' --region eu-central-1
{
    "StreamEnabled": true,
    "StreamViewType": "NEW_IMAGE"
}

$ awslocal dynamodb describe-table --table-name global01 --query 'Table.StreamSpecification' --region ap-south-1
{
    "StreamEnabled": true,
    "StreamViewType": "NEW_IMAGE"
}

# List streams works in original region...
$ awslocal dynamodbstreams list-streams --region ap-south-1
{
    "Streams": [
        {
            "StreamArn": "arn:aws:dynamodb:ap-south-1:000000000000:table/global01/stream/2022-12-30T11:52:55.566",
            "TableName": "global01",
            "StreamLabel": "2022-12-30T11:52:55.566"
        }
    ]
}

# ... but no in replicated regions
$ awslocal dynamodbstreams list-streams --region eu-central-1
{
    "Streams": []
}

🧑‍💻 Implementation

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws:dynamodbAmazon DynamoDBaws:dynamodbstreamsAWS DynamoDB Streamsstatus: acceptedFeature/enhancement request was acceptedtype: featureNew feature, or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions