aws-dynamodb: Unable to set resource policy on DDB streams #31229
Labels
@aws-cdk/aws-dynamodb
Related to Amazon DynamoDB
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the bug
There does not seem to be a way to set resource policy on DynamoDB stream through L2 constructs.
addReplica
method does not allow setting stream resource policy nor is it available inTableOptionsV2
.We can only set resource policy for the table itself.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I expect to be able to set a resource policy for DDB streams via L2 constructs.
Current Behavior
Currently it's is not possible to set resource policy for DDB streams via L2 constructs.
Reproduction Steps
Try creating DynamoDB table and set resource policy for DDB streams (not table).
Possible Solution
Expose
streamResourcePolicy
inTableOptionsV2
.Additional Information/Context
I'm currently setting the policy by getting the L1 construct and resolving the replicas property.
CDK CLI Version
2.154.1
Framework Version
No response
Node.js Version
v20.15.0
OS
MacOS Sonoma 14.5 (23F79)
Language
TypeScript
Language Version
5.4.5
Other information
No response
The text was updated successfully, but these errors were encountered: