-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: Report the correct number of shards for Kinesis streams #5401
provider/aws: Report the correct number of shards for Kinesis streams #5401
Conversation
Hi @Bowbaq, Does this relate to longer running streams? There is currently a terraform acceptance test that creates a stream with a number of shards and checks that that number os shards is correct Paul |
Shards are immutable. When a stream gets re-sharded, existing shards are Terraform doesn't support re-sharding so I'm guessing the acceptance test On Friday, March 4, 2016, Paul Stack notifications@github.com wrote:
|
Got it, so the test would be
Old code = shards would be 3 and TF would try and fix that New code (your PR) = open shards are 2 are TF has no action Right? |
Correct On Friday, March 4, 2016, Paul Stack notifications@github.com wrote:
|
Thanks @Bowbaq - trying to see if i can get a test in place for this now :) |
This looks like it works as expected :) Thanks for the work @Bowbaq! |
…ount provider/aws: Report the correct number of shards for Kinesis streams
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This fixes (a small) part of #5352. Reporting the correct number of shards (ie. the number of open shards) at least allows to manually match in terraform whatever was set in AWS, preventing streams from being replaced and data lost.