mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-16 18:35:03 -06:00
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:
parent
df7a15fff9
commit
f31ebff10e
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user