Closed hleb-albau closed 4 years ago
That's a great suggestion @hleb-albau , however, with the recent release of new global table support, the old one might get deprecated (see https://github.com/aws/aws-cdk/pull/5821 ), so I'm not sure it's wise to invest much in it (unless you have a reason you can't use the new support, and have to stay with the old one).
Thanks, Adam
Many resources in aws cdk has feature like:
Add same functionality to aws_cdk.aws_dynamodb_global construct.
Use Case
Multi-regions deployments becomes more popular over time. Currently, cdk users should create polices and roles to provide access to dynamo global tables. Introducing such feature can decries number of code to connect various aws services to dynamo.
Proposed Solution
Add
grantRead
,grantWrite
method to aws_cdk.aws_dynamodb_global construct. Specified methods creates managed policy(only once) with required permissions. For eachIGrantable
creates and attaches role.This is a :rocket: Feature Request