-
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
Fix DynamoDB OnDemand GSI behavior #6737
Conversation
…y correspond to a table with PAY_PER_REQUEST billing enabled
@bflad I think I'm "done" with this PR insofar that it's ready for code review. I do agree with the comments on the issue that this probably would be better categorized as a bug. |
@bflad just following up to see if there's anything I can on this PR to help move it along. Thanks! |
I am having this issue too! Thanks for your work @sbogacz, hopefully someone will get this moving along |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @sbogacz 🚀
--- PASS: TestAccAWSDynamoDbTable_streamSpecificationValidation (1.64s)
--- PASS: TestAccAWSDynamoDbTable_importTags (76.22s)
--- PASS: TestAccAWSDynamoDbTable_basic (109.89s)
--- PASS: TestAccAWSDynamoDbTable_streamSpecification (125.28s)
--- PASS: TestAccAWSDynamoDbTable_importBasic (130.26s)
--- PASS: TestAccAWSDynamoDbTable_importTimeToLive (130.35s)
--- PASS: TestAccAWSDynamoDbTable_attributeUpdateValidation (1.30s)
--- PASS: TestAccAWSDynamoDbTable_encryption (31.31s)
--- PASS: TestAccAWSDynamoDbTable_gsiUpdateCapacity (228.50s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode (249.95s)
--- PASS: TestAccAWSDynamoDbTable_gsiUpdateNonKeyAttributes (141.46s)
--- PASS: TestAccAWSDynamoDbTable_extended (253.35s)
--- PASS: TestAccAWSDynamoDbTable_ttl (141.60s)
--- PASS: TestAccAWSDynamoDbTable_enablePitr (285.30s)
--- PASS: TestAccAWSDynamoDbTable_tags (359.94s)
--- PASS: TestAccAWSDynamoDbTable_gsiUpdateOtherAttributes (481.43s)
--- PASS: TestAccAWSDynamoDbTable_attributeUpdate (433.90s)
This has been released in version 1.52.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
allow GSIs to be created with no throughput capacity specified if they correspond to a table with PAY_PER_REQUEST billing enabled
Fixes #6736
Changes proposed in this pull request:
I also wouldn't mind some input about how to handle the update scenario. It feels like the code should short circuit as early as possible, so maybe extracting the logic currently being used for table creation, and using it to validate the new GSI block before we compute the diff.
Thoughts?
UPDATE: I implemented the fix for updates as well, and added an acceptance test validating that the creation succeeds with a GSI.
Output from acceptance testing: