You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To have the option of defining that terraform apply on this change would execute
RENAME USER 'svc_user'@'%' TO 'svc_user'@'10.%';
Instead of removing the user and creating a new user. In this way, the password of the MySQL user being used as service user by a production app wouldn't have to be updated and the service wouldn't have to be interrupted.
Actual Behavior
Changing host destroys the DB user and creates a new DB user.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
I think the should be an option at the provider level that, by default, keeps the current behaviour, but that can be changed in case that's what's wanted.
References
N/A
The text was updated successfully, but these errors were encountered:
Your suggestion makes sense and I don't think there has to be a provider-level setting to preserve the old behavior.
If someone wants to do destroy & create, they can rename the resource.
However, I don't have a lot of time to implement it.
Provider version
MySQL version and settings
Terraform Configuration Files
It was changed to
Debug Output
N/A
Panic Output
N/A
Expected Behavior
To have the option of defining that terraform apply on this change would execute
Instead of removing the user and creating a new user. In this way, the password of the MySQL user being used as service user by a production app wouldn't have to be updated and the service wouldn't have to be interrupted.
Actual Behavior
Changing host destroys the DB user and creates a new DB user.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
I think the should be an option at the provider level that, by default, keeps the current behaviour, but that can be changed in case that's what's wanted.
References
N/A
The text was updated successfully, but these errors were encountered: