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

Add Support for On-Demand Capacity to TableConfig #89

Merged
merged 5 commits into from
Dec 5, 2018
Merged

Conversation

awood45
Copy link
Member

@awood45 awood45 commented Dec 5, 2018

This adds support for the "PAY_PER_REQUEST" billing mode, and has integration tests as well as unit tests for the different related scenarios.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Remaining: Some global secondary index-based migrations are
untested. These should be tested and handled properly before merging.
Brings support for on-demand capacity to TableConfig.
@awood45 awood45 requested a review from cjyclaire December 5, 2018 21:27
There is no such thing as a free lunch.
@@ -59,7 +70,9 @@ module Record
# :title,
# hash_key: :forum_uuid,
# range_key: :post_title,
# projection_type: "ALL"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any related code changes with this doc update (besides tests), so I'm assuming this is for updating docs to reflect current behavior?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, that's actually a doc bug.

The DynamoDB service raises a ValidationError per the integration tests
in cases where you provide a `:billing_mode` option when no change
occurred. This change ensures that does not happen, and updates unit
tests appropriately.
@awood45 awood45 merged commit 1d4f716 into master Dec 5, 2018
@mullermp mullermp deleted the ppr-billing branch March 8, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants