From f31ebff10e1c2d6b6c0ab132b1d47833da8fee66 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 5 Sep 2016 16:19:19 -0700 Subject: [PATCH] Change the PostgreSQL PGSSLMODE option to sslmode to match PostgreSQL idioms. Also don't specify the default and rely on github.com/lib/pq (which uses "required" and is different than what libpq(3) uses, which is "preferred" and unsupported by github.com/lib/pq). --- builtin/providers/postgresql/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/postgresql/provider.go b/builtin/providers/postgresql/provider.go index e90b010389..cbdc4a4e51 100644 --- a/builtin/providers/postgresql/provider.go +++ b/builtin/providers/postgresql/provider.go @@ -34,10 +34,10 @@ func Provider() terraform.ResourceProvider { DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGPASSWORD", "POSTGRESQL_PASSWORD"}, nil), Description: "Password for PostgreSQL server connection", }, - "ssl_mode": { + "sslmode": { Type: schema.TypeString, Optional: true, - DefaultFunc: schema.EnvDefaultFunc("PGSSLMODE", "require"), + DefaultFunc: schema.EnvDefaultFunc("PGSSLMODE", nil), Description: "Connection mode for PostgreSQL server", }, "connect_timeout": {