hashicorp / terraform-provider-mysql

Terraform MySQL provider – This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://www.terraform.io/docs/providers/mysql/
Mozilla Public License 2.0
61 stars 190 forks source link

Feature: Import mysql resources #29

Closed Phylu closed 6 years ago

Phylu commented 6 years ago

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 terraform

Actual Behavior

The import is not possimle

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform import mysql_datasabase.database database
morganchristiansson commented 4 years ago

mysql_user was not added in PR that closed this issue.

There is open PR #113 to add terraform import mysql_user