Hi, thanks for this provider has really helped us be able to manage our DB from terraform as we access our DB via a jumpbox/bastion. However running into an issue now that the resources are in terraform state it doesn't seem to be able to refresh.
Okay worked this out, it was due to me enabling enforced SSL on MySQL user it was MySQL rejecting the request as it wasn't being done of TLS. Nothing to do with your module.
Hi, thanks for this provider has really helped us be able to manage our DB from terraform as we access our DB via a jumpbox/bastion. However running into an issue now that the resources are in terraform state it doesn't seem to be able to refresh.
Let me know if there's anything else you need.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
data.tf
main.tf
Debug Output
https://gist.github.com/CWDN/006389f6056d2a594aa2b349c647c190
I've had to remove certain bits as they are sensitive to the company I work for.
Expected Behavior
Ran a
terraform plan
and expected to see no changes needed for the infrastructure and the plan to complete.Actual Behavior
The plan hangs and eventually get a couldn't connect to the tunnel:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
.Important Factoids
We use an EC2 instance for a jumpbox which then allows us to connect to an Aurora MySQL instance.
It was successful when creating the resources and there was no existing state. However now there's state it doesn't seem to be able to refresh.
Furthermore didn't seem to be able to import the user as I got the same hanging issue.
I did look at the running processes/open ports and there was nothing there so I'm assuming the SSH tunnel is closing early.