set default postgres connection limit

This commit is contained in:
pbthorste 2017-01-11 22:45:30 +01:00
parent 1f036e7743
commit 0c1175f78b
2 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ func resourcePostgreSQLDatabase() *schema.Resource {
Type: schema.TypeInt, Type: schema.TypeInt,
Optional: true, Optional: true,
Computed: true, Computed: true,
Default: -1,
Description: "How many concurrent connections can be made to this database", Description: "How many concurrent connections can be made to this database",
ValidateFunc: validateConnLimit, ValidateFunc: validateConnLimit,
}, },

View File

@ -77,6 +77,7 @@ func resourcePostgreSQLRole() *schema.Resource {
roleConnLimitAttr: { roleConnLimitAttr: {
Type: schema.TypeInt, Type: schema.TypeInt,
Optional: true, Optional: true,
Default: -1,
Computed: true, Computed: true,
Description: "How many concurrent connections can be made with this role", Description: "How many concurrent connections can be made with this role",
ValidateFunc: validateConnLimit, ValidateFunc: validateConnLimit,