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

new way to use sql connection #37

Closed mclavel closed 6 years ago

mclavel commented 6 years ago

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.

jessebye commented 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:

mberning commented 6 years ago

+1 - facing this issue as well

joestump commented 6 years ago

@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.

joestump commented 6 years ago

Closing in favor of #43.