aws-cdk-lib/aws_dynamodb: DynamoDB global tables should not use custom resource #24332
Closed
1 of 2 tasks
Labels
@aws-cdk/aws-dynamodb
Related to Amazon DynamoDB
feature-request
A feature should be added or improved.
p1
Describe the feature
Not exactly a new feature, but an improvement to the current one.
replicationRegions
, and a custom resource is provisioned to set up the replication. There is no longer a separate class for replicated dynamodb table.AWS::DynamoDB::GlobalTable
. This was never added to CDK L2 constructs.Please add L2 support for CfnGlobalTable separately, or modify the current L2 support to instead use CfnGlobalTable directly rather than adding custom resources to mimic the same functionality.
Use Case
I don't like additional custom resources than can break where "native" support is available. This seems to be just a remnant of the past.
Proposed Solution
Either add GlobalTable as a separate resource, or modify the current implementation of Table. It maybe hard to keep compatibility with a stable module if modifying the current implementation.
Other Information
No response
Acknowledgements
CDK version used
2.66.0 (build c96c17d)
Environment details (OS name and version, etc.)
Linux codespaces-af5ba0 5.4.0-1103-azure #109~18.04.1-Ubuntu SMP Wed Jan 25 20:53:00 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: