feat(dynamodb): resource policies for streams#37254
Conversation
|
|
||||||||||||||
|
|
||||||||||||||
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Merge Queue Status
This pull request spent 7 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Merge Queue Status
This pull request spent 8 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
71c5b30 to
d6e2271
Compare
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Merge Queue Status
This pull request spent 24 seconds in the queue, including 5 seconds running CI. Required conditions to merge
|
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes NA
Reason for this change
The CloudFormation AWS::DynamoDB::GlobalTable L1 resource supports ReplicaStreamSpecification.ResourcePolicy on each replica, allowing users to attach resource-based policies to DynamoDB Streams. However, the TableV2 L2 construct does not expose this property, making it impossible to set a stream resource policy without escape hatches — which get
overwritten during synthesis.
Description of changes
Added streamResourcePolicy support to the DynamoDB TableV2 L2 construct:
replica regions use props.streamResourcePolicy
Describe any new or updated permissions being added
No new IAM permissions are introduced. This change allows users to configure resource-based policies on DynamoDB Streams, which is an existing DynamoDB capability that was not previously exposed in the L2 construct.
Description of how you validated changes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license