It is not possible to import a mysql database to the terraform state. This is a feature request, enabling importing of existing databases and users. Currently it is not possible to put an existing database under the control of terraform.
Terraform Version
Terraform v0.11.3`
provider.mysql v1.0.1
Affected Resource(s)
mysql_database
mysql_user
Expected Behavior
Using terraform import it should be able to import an existing database into the state so that it can be managed by terraform
Actual Behavior
The import is not possimle
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
It is not possible to import a mysql database to the terraform state. This is a feature request, enabling importing of existing databases and users. Currently it is not possible to put an existing database under the control of terraform.
Terraform Version
Terraform v0.11.3`
Affected Resource(s)
Expected Behavior
Using
terraform import
it should be able to import an existing database into the state so that it can be managed by terraformActual Behavior
The import is not possimle
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import mysql_datasabase.database database