Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamodb: TableV2 to support fixed write capacity #27378

Closed
2 tasks
skal111 opened this issue Oct 2, 2023 · 2 comments
Closed
2 tasks

dynamodb: TableV2 to support fixed write capacity #27378

skal111 opened this issue Oct 2, 2023 · 2 comments
Labels
@aws-cdk/aws-dynamodb Related to Amazon DynamoDB feature-request A feature should be added or improved.

Comments

@skal111
Copy link

skal111 commented Oct 2, 2023

Describe the feature

Creating a TableV2 with provisionned billing fails if I specify fixed capacity for WCU.

Error: You cannot configure 'writeCapacity' with FIXED capacity mode

new TableV2(this, my-table, {
billing: Billing.provisioned({
readCapacity: Capacity.fixed(3),
writeCapacity: Capacity.fixed(1),
}),
}

Use Case

My table's capacity is well known so I don't need the autoscaling.

The thing is it autoscaling capacity creates a lot of cloudwatch alarms which I don't need, as they will never trigger. This produces unwanted additional costs.

Proposed Solution

Support fixed capacity for WCU.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.99.1

Environment details (OS name and version, etc.)

Win11

@skal111 skal111 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Oct 2, 2023
@github-actions github-actions bot added the @aws-cdk/aws-dynamodb Related to Amazon DynamoDB label Oct 2, 2023
@khushail khushail added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Oct 2, 2023
@khushail
Copy link
Contributor

khushail commented Oct 2, 2023

Hi @skal111 ,thanks for reaching out. As mentioned here in the docs-

When using provisioned billing, you must also specify readCapacity and writeCapacity. You can choose to configure readCapacity with fixed capacity or autoscaled capacity, but writeCapacity can only be configured with autoscaled capacity.

This is not supported by Cloudformation hence can't be implemented from CDK side.

@khushail khushail added p2 effort/small Small work item – less than a day of effort and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. p2 effort/small Small work item – less than a day of effort labels Oct 2, 2023
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-dynamodb Related to Amazon DynamoDB feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

3 participants