Closed mclavel closed 6 years ago
Any news on this? We could really use this! Wondering why it's sat open for so long with no comments and not gotten merged :cry:
+1 - facing this issue as well
@mclavel thanks for this PR and sorry that it's lingered so long. I was just added as a maintainer and hope to get this PR along with a few others merged in and released soon.
Closing in favor of #43.
For default the mysql provider use providerConfigure function like ConfigureFunc. This function create a sql connection for default, but this is a problem if the database is not available when we executes the terraform plan/apply (for example using services like Google Cloud Platform or AWS, when the plan contains the databases to creates and the new mysql users to apply, in the same file).
So I fixed this situation changed the way to use the sql connection, creating a unique connection for any resource.
I think this it not the best solution for the issue, but this approach allow use the mysql provider with others like GCP provider.