-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.databases.tf
26 lines (24 loc) · 1.42 KB
/
variables.databases.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
variable "databases" {
type = map(object({
name = string
charset = optional(string)
collation = optional(string)
timeouts = optional(object({
create = optional(string)
delete = optional(string)
read = optional(string)
}))
}))
default = {}
description = <<-EOT
- `name` - (Required) Specifies the name of the PostgreSQL Database, which needs [to be a valid PostgreSQL identifier](https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS). Changing this forces a new resource to be created.
- `charset` - (Optional) Specifies the Charset for the PostgreSQL Database, which needs [to be a valid PostgreSQL Charset](https://www.postgresql.org/docs/current/static/multibyte.html). Changing this forces a new resource to be created.
- `collation` - (Optional) Specifies the Collation for the PostgreSQL Database, which needs [to be a valid PostgreSQL Collation](https://www.postgresql.org/docs/current/static/collation.html). Note that Microsoft uses different [notation](https://msdn.microsoft.com/library/windows/desktop/dd373814.aspx)
---
`timeouts` block supports the following:
- `create` - (Defaults to 60 minutes) Used when creating the PostgreSQL Database.
- `delete` - (Defaults to 60 minutes) Used when deleting the PostgreSQL Database.
- `read` - (Defaults to 5 minutes) Used when retrieving the PostgreSQL Database.
EOT
nullable = false
}