-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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 On Demand Scaling #6632
Comments
I would suggest we have a new field called billing_mode which can be either "PROVISIONED" or "PAY_PER_REQUEST". I recommend this one, since the aws sdk has added a new field called BillingMode. |
@sunilkumarmohanty agreed. Documentation for reference of BillingMode can be found here. |
@sunilkumarmohanty I've updated my comment to match |
Support for the |
I left a comment on the PR, but I believe this will not work for tables with global secondary indexes as the read_capacity and write_capacity need to be made optional for on demand tables. |
The initial implementation has been released in version 1.51.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. I would suggest creating a separate issue for making GSI capacities optional. |
I think that read and write are still required on GSI.
Error: aws_dynamodb_table.assignments: "global_secondary_index.0.read_capacity": required field is not set aws_dynamodb_table.assignments: ValidationException: One or more parameter values were invalid: ProvisionedThroughput should not be specified for index: author when BillingMode is PAY_PER_REQUEST |
@philipmclifton I ran into the same issue as you and was able to work around it by setting those values to "0" Here's a sample of what I'm using across a few different tables
|
@willtrking - it does not work for me, I get this kind of error:
|
@LiborVilimekMassive I think that this error can be safely ignored. There will be no errors on next apply and billing change is actually applied. |
@Hinidu it does eventually work, but this error will fail any dependent resources or subsequent pipeline steps and leave our infrastructure in a weird state. This should be addressed. |
Version 1.52 has the fix #6737. |
Something similar seems to have crept back in 1.58 for billing_mode is set to PAY_PER_REQUEST, and we are trying to apply a new
|
Also seeing issues in 1.58
I have the following defined
And looking at the table, everything is set to ON-DEMAND |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
Dynamo DB released a new on-demand throughput mode today for all regions. It does not require read/write throughput to be specified on the table or any indexes.
New or Affected Resource(s)
Potential Terraform Configuration
References
Relasee Notes
The text was updated successfully, but these errors were encountered: