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).
This commit is contained in:
Sean Chittenden 2016-09-05 16:19:19 -07:00
parent df7a15fff9
commit f31ebff10e
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16

View File

@ -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": {