-
Notifications
You must be signed in to change notification settings - Fork 190
Provider insists on changing a sub-parameter even when no changes are necessary #997
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
Comments
Thanks @gilbahat can you share your terraform config file (main.tf) so we can replicate issue on our side? |
not exactly sure what you expect to see. main.tf is used here for configuring the backend only. Here's what I can share: versions.tf snippet:
mongo.tf:
|
Helpful @gilbahat! after import of your MongoDB Atlas cluster, can you try |
Hi, I'm afraid that is not possible because as I had stated earlier, container_id under replication_specs is read only. I am unable to set a value for it and when I try to do that, the provider protests. otherwise as per my provided output above please indicate which concrete variables may need changing so I can try doing so |
Thanks for reporting @gilbahat, I will look into the cause of this issue. One workaround you may be able to use in the meantime is ignoring changes to the container_id/id
|
Thanks! I would love to apply this approach but unfortunately this doesn't work: an alternative doesn't work either: │ Error: Invalid expression |
🤦 the changes to make replication_specs a list rather than a set are coming in |
I'm getting what I assume is the same issue, except I didn't even import a cluster. The provider created the cluster yesterday with no issue, and a plan right after found no change. I'm not sure what to do about that, it doesn't look like there's any way around it |
I have the same problem, it seems to me that the container ID maybe changes, doesn't it? I'm looking forward to |
@gilbahat @Ulrar @SamuelMolling as an update, this issue has been picked up in current sprint cycle and you can expect fix to be included as part of v1.8.0 release next week. will let you know when latest release has been published to the Terraform Registry. |
Thanks @Zuhairahmed! |
That's great news, but in the meantime do you know if the below is 'safe' to apply ? Since all the settings are the same, would there be a downtime ?
That's an M2 but I've had these with M10 as well, so same question for dedicated clusters. |
@Zuhairahmed hello, is the problem fixed in version 1.8 which was released two hours ago? |
@gilbahat @Ulrar @SamuelMolling yes we just released v1.8.0, feel free to give it try! issue should have been resolved. |
@Zuhairahmed good morning, in lifecycle I can't put something like: |
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! |
@SamuelMolling has your issue been resolved? happy to help if you need anything else here |
closing this issue, but feel free to re-open if you need anything else here |
Terraform CLI and Terraform MongoDB Atlas Provider Version
Copy-paste your version info here
terraform v1.3.6
mongodb atlas provider version 1.6.1
Terraform Configuration File
(sensitive, cannot attach)
Steps to Reproduce
I have imported an existing cluster into the advanced cluster resource.
Following the import, I have tweaked my terraform manifests - to no avail. The result is always the same: changes needed.
Expected Behavior
mongodb provider detects that no infrastructure changes are necessary
Actual Behavior
mongodb provider insists on making an unnecessary and potentially disruptive change:
as you will note, all specs are 100% identical except for id/container_id which are not user-serviceable.
please advise.
The text was updated successfully, but these errors were encountered: