Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Feature: Configurable timeouts for connection to MySQL #71

Open
Blokje5 opened this issue Feb 19, 2019 · 1 comment
Open

Feature: Configurable timeouts for connection to MySQL #71

Blokje5 opened this issue Feb 19, 2019 · 1 comment

Comments

@Blokje5
Copy link

Blokje5 commented Feb 19, 2019

Terraform Version

v0.11.11

Affected Resource(s)

  • mysql provider

Terraform Configuration Files

Currently the MySQL provider does not support configurable timeouts for connections. It will timeout after 5 minutes.

It would be nice if we could configure the connection timeout. Especially if there already is an existing database you are connecting with, 5 minutes is a long time to wait for the timeout to happen. e.g.

provider "mysql" {
  endpoint = "${var.endpoint}"
  username = "${var.username}"
  password = "${var.password}"
  connection_timeout = 1
}

Expected Behavior

Configuring the timeout allows the retry of the connection to timeout quicker than the default of 5 minutes.

Actual Behavior

Configuration of the timeout is not possible.

@schuettecarsten
Copy link

It is very important to specify a connection timeout when you use this Provider to connect to a Maria DB Aure instance - because connections simply timeout if you missed to add the firewall rule, which happens quite often in Corona Home Office situations. It's very annoying if you have to wait 5 minutes every time...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants