Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Feature: Import users from database #61

Open
RTodorov opened this issue Dec 6, 2018 · 2 comments
Open

Feature: Import users from database #61

RTodorov opened this issue Dec 6, 2018 · 2 comments

Comments

@RTodorov
Copy link

RTodorov commented Dec 6, 2018

Hi there,

Currently, mysql_user resource can't be imported via terraform import. Is there any reason why this is not possible or do we simply need to implement it? In case it's all about implementation, I can give it a try.

Thank you

@morganchristiansson
Copy link

There is open PR #113

@dcposch
Copy link

dcposch commented Jul 17, 2020

that PR was closed yesterday.

this issue is making terraform-provider-mysql very difficult to use in production. there is no good way to bring the Terraform state into sync with the MySQL server state.

related: it would be very useful to be able to tell terraform to ensure that a server contains only the MySQL users defined in terraform.

as it stands, we are running servers that:

  • have a few users created by terraform-provider-mysql
  • have additional, pre-existing users that are not in terraform
  • i cannot add them due to the missing import capability (this issue)
  • terraform does not flag the existence of those extraneous users as a diff, either.

that negates most of the value of having the MySQL auth in terraform.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants