-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
dynamodb: FIXED capacity mode should be supported #27443
Comments
Below is a CloudFormation template to create DynamoDB table with WCU fixed: |
Hi @liusongdu , Here its described how the TableV2 construct can be configured with provisioned billing-
what you have shared in the cloudformation template, that is in accordance with what is implemented by CDK. The provisionedThroughputDescription object accepts the value a stated. So the feature requested by you is not do-able as its not supported by Cloudformation. Past Similar request -#27378 |
|
Setting fixed WCU, I do think it is supported by CloudFormation. The evidence is the attached CloudFormation template example. So my understand is that only CDK not support this, but CloudFormation does. @khushail
|
For everyone else coming here confused: |
Describe the bug
Creating a TableV2 with provisioned billing fails if I specify fixed capacity for WCU.
Error: You cannot configure 'writeCapacity' with FIXED capacity mode
Using fixed capacity for DynamoDB table provision mode should be supported by CDK, as it is supported by CloudFormation.
CDK don't support configuring 'writeCapacity' with FIXED capacity mode, however, this is supported by CloudFormation.
https://github.com/aws/aws-cdk/tree/main/packages/aws-cdk-lib/aws-dynamodb#billing
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html
Expected Behavior
My table's capacity is well known so I don't need the autoscaling. The FIXED write capacity mode should be supported by DynamoDB CDK.
Current Behavior
Currently, the write capacity field of the DynamoDB CDK only support autoscaling capacity.
Reproduction Steps
new TableV2(this, my-table, {
billing: Billing.provisioned({
readCapacity: Capacity.fixed(3),
writeCapacity: Capacity.fixed(1),
}),
}
Possible Solution
Support fixed capacity for WCU.
Additional Information/Context
No response
CDK CLI Version
2.100.0
Framework Version
No response
Node.js Version
v18.17.1
OS
Linux
Language
Python
Language Version
3.9.16
Other information
No response
The text was updated successfully, but these errors were encountered: