-
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
Cannot ignore changes for replication_specs when autoscaling is enabled #888
Comments
@ilya-scale We will have to explore options to restructure the datatype to a list Internal ticket INTMDB-464 |
Sounds great! Maybe there are better options though that will allow to use autoscaling without an ignore, i.e. not specifying the instance_size directly (at least to have it as an option), but always using the compute_min_instance_size config from autoscaling e.g. as a starting point |
@martinstibbe thanks for taking it into a backlog. Error example,
|
Just wanted to add a |
@ilya-scale @leo-ferlin-sutton @ivan-sukhomlyn brief update, we have allocated this fix to our next v1.8.0 release which should be out next week. will keep you posted when it has been published to the Terraform Registry. |
Similar issue but ours is slightly more complex in that our
|
Worth also noting that your docs about auto_scaling recommend a solution that does not work: https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/advanced_cluster#auto_scaling |
@ilya-scale @leo-ferlin-sutton @ivan-sukhomlyn @icco we just released v1.8.0, feel free to give it try! issue should have been resolved. |
I can confirm that the issue has been fixed with the v1.8.0 version. Config example, lifecycle {
# as storage and compute autoscaling is enabled
ignore_changes = [
disk_size_gb,
replication_specs[0].region_configs[0].electable_specs[0].instance_size
]
}
Thanks @Zuhairahmed @evertsd 👍 |
Wonderful to hear! Thanks for the confirmation @ivan-sukhomlyn |
It seems to work fine for me as well, thanks for the fix! |
I agree. Thanks a lot! |
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
Expected Behavior
I expect that there is a possibility to ignore instance_size
Actual Behavior
It is not possible to do since terraform does not support referencing elements of a set. This is what I get if I try to reference region_configs:
Debug Output
Crash Output
Additional Context
References
An issue in terraform core that says pretty much that it is not possible to reference sets and providers should use e.g. a list: hashicorp/terraform#26359
The text was updated successfully, but these errors were encountered: