mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -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),
|
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGPASSWORD", "POSTGRESQL_PASSWORD"}, nil),
|
||||||
Description: "Password for PostgreSQL server connection",
|
Description: "Password for PostgreSQL server connection",
|
||||||
},
|
},
|
||||||
"ssl_mode": {
|
"sslmode": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
DefaultFunc: schema.EnvDefaultFunc("PGSSLMODE", "require"),
|
DefaultFunc: schema.EnvDefaultFunc("PGSSLMODE", nil),
|
||||||
Description: "Connection mode for PostgreSQL server",
|
Description: "Connection mode for PostgreSQL server",
|
||||||
},
|
},
|
||||||
"connect_timeout": {
|
"connect_timeout": {
|
||||||
|
Loading…
Reference in New Issue
Block a user