-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
SQL instance's authorized_networks constantly shifting order #547
Comments
Note to the implementer:
|
What's interesting, is that that used to work OK in some previous version. I don't know which that was, because we're not running the deployment often, and we didn't have the provider version pinned (now it is). |
Did you also have multiple authorized_networks before? Another possibility is that the Cloud API changed their implementation and are using a set instead of a list (ordered vs unordered container) now... |
Yeah, we pretty much always had the same number of networks. |
Note, the only way to actually reproduce this is to create the resources, then edit the network list at least once -- this will then trigger the bug. |
<!-- This change is generated by MagicModules. --> /cc @rileykarson
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Terraform Version
v0.10.7
Affected Resource(s)
google_sql_database_instance
Terraform Configuration Files
Debug Output
https://gist.github.com/anonymous/a8baf57441aa6c1e158dc9ee5a30c54c
Expected Behavior
After running
terraform apply
, runningterraform plan
reports nothing to update.Actual Behavior
After running
terraform apply
, runningterraform plan
reports that the list of authorized_networks on the SQL server needs to be updated. The set of IPs and their names doesn't change, actually. But terraform wants to put them in different order every single time, for some reason.Steps to Reproduce
terraform apply
terraform plan
The text was updated successfully, but these errors were encountered: