-
Notifications
You must be signed in to change notification settings - Fork 178
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
num_shards value changed to 1 #970
Comments
Updated the references it seems in this resource there is num_shards inside the replication_specs and outside it. If you set them both the issue doesn't occur but your config looks weird with the same variable set multiple times |
@jmeagheriv Investigating the overlap of parameters with engineering to determine best course of action |
This issue has gone 30 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy! |
@jmeagheriv this issue has been resolved in You are correct there are 2 num_shards parameters in |
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
Expected Behavior
No changes
Actual Behavior
Number of shards reset to 1.
Debug Output
Crash Output
No Crash output
Additional Context
There are two different num_shards values in the plan output, one in replicationSpecs and one before that. If you have a sharded cluster and make any change except to num_shards it will revert the num_shards to 1. This issue could cause someone to remove shards erroneously.
References
https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/mongodbatlas/data_source_mongodbatlas_cluster.go
The text was updated successfully, but these errors were encountered: