-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
feat: add warm_throughput to aws_dynamodb_table #41308
base: main
Are you sure you want to change the base?
feat: add warm_throughput to aws_dynamodb_table #41308
Conversation
Community NoteVoting for Prioritization
For Submitters
|
78047a0
to
5c3aed0
Compare
@aristosvo Please ensure that the |
@acwwat Thanks for the heads up! I saw your PR flying by, but didn't dig into it. Do you think we should separate the functions for data source and resource or is that not the standard way for this provider (I know that they preferred that for the Azure provider)? |
b678769
to
e647a1e
Compare
@aristosvo Thanks for the message. I'll have to rely on one of the maintainers to comment on this. @justinretzolk Please see if you can chime in or loop in other maintainers for a more official recommendation? Thanks. I am personally split, because I like code reuse especially for common logics like flattening, but the risk of causing regression is pretty high as-is. If we can lower that risk enough with more checks and guidance (e.g. if there are null checks that'd work even if schema is not updated), then my answer would be clear. |
Whenever possible we prefer the data source match the corresponding resource schema, allowing the "flex" functions to be re-used both places. Specific to this example I think we’d want the With Plugin Framework-based resources, AutoFlex will sort of "do the right thing" and skip attempting to set any values which are not defined in the schema. However, for legacy Plugin SDK based resources with hand written flatteners we need to keep the data source schemas more explicitly in sync. |
c206acb
to
8739c28
Compare
766ee1e
to
e6d9bf5
Compare
Yes, agreed. Just to clarify, I was not requesting to migrate this resource, just describing the difference in behavior between Plugin SDK and Plugin Framework based resources. Thanks for including the data source schema changes here! 👍 |
Description
Adding
warm_throughput
toaws_dynamodb_table
and the Global Secondary Index (aws_dynamodb_table. global_secondary_index
)Especially the GSI caused more code changes than I had anticipated, there is a lot of logic around create/update/recreates of the indexes.
I started with testing and I think all tests are passing , but I'm facing too much testing costs for it to run them myself for now
Relations
Closes #40141
References
Output from Acceptance Testing