SSH tunnel to RDS drops connection

I am using the hosted Metabase service to connect to an AWS RDS Postgres instance in a private VPC. I am connecting using an SSH tunnel through an SSH bastion, configured through the UI. The connection works fine after I save the connection details, but eventually, it disconnects and never recovers. The only thing that fixes the connection is pressing the Save Changes button. The proposed workaround is to set up the SSH tunnel myself, which isn’t possible since this a hosted version on Metabase’s own servers.

What options do I have? Thanks in advance…

  "browser-info": {
    "language": "en-US",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36",
    "vendor": "Google Inc."
  "system-info": {
    "file.encoding": "UTF-8",
    "": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.7+10",
    "java.vendor": "AdoptOpenJDK",
    "java.vendor.url": "",
    "java.version": "11.0.7",
    "": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.7+10",
    "": "Linux",
    "os.version": "4.14.186-146.268.amzn2.x86_64",
    "user.language": "en",
    "user.timezone": "GMT"
  "metabase-info": {
    "databases": [
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "11.7"
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.2.8"
    "run-mode": "prod",
    "version": {
      "date": "2021-01-13",
      "tag": "v1.37.6",
      "branch": "release-x.37.x",
      "hash": "344e5e0"
    "settings": {
      "report-timezone": null

Hi @countrodrigo
We are working on a fix for this, but I don’t have a timeline yet.
It’s currently one of the limitations of Metabase Cloud:

I'm having the same issue but with Metabase self-hosted. using version 0.38.1.

Is the issue resolved in the latest version? If so I will arrange to have it updated

@ChristineChetty Yes, since 0.39.0. Latest release is

1 Like