This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
variables.tf
133 lines (110 loc) · 3.75 KB
/
variables.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
variable "client_name" {
description = "Name of client"
type = string
}
variable "environment" {
description = "Name of application's environnement"
type = string
}
variable "stack" {
description = "Name of application stack"
type = string
}
variable "resource_group_name" {
description = "Name of the application ressource group, herited from infra module"
type = string
}
variable "location" {
description = "Azure location for Key Vault."
type = string
}
variable "location_short" {
description = "Short string for Azure location."
type = string
}
variable "administrator_login" {
description = "PostgreSQL administrator login"
type = string
}
variable "administrator_password" {
description = "PostgreSQL administrator password. Strong Password : https://docs.microsoft.com/en-us/sql/relational-databases/security/strong-passwords?view=sql-server-2017"
type = string
}
variable "allowed_cidrs" {
type = map(string)
description = "Map of authorized cidrs, must be provided using remote states cloudpublic/cloudpublic/global/vars/terraform.state"
}
variable "tier" {
type = string
description = "Tier for PostgreSQL server sku : https://docs.microsoft.com/en-us/azure/postgresql/concepts-pricing-tiers Possible values are: GeneralPurpose, Basic, MemoryOptimized"
default = "GeneralPurpose"
}
variable "capacity" {
type = number
description = "Capacity for PostgreSQL server sku - number of vCores : https://docs.microsoft.com/en-us/azure/postgresql/concepts-pricing-tiers"
default = 4
}
variable "auto_grow_enabled" {
description = "Enable/Disable auto-growing of the storage."
type = bool
default = false
}
variable "storage_mb" {
description = "Max storage allowed for a server. Possible values are between 5120 MB(5GB) and 1048576 MB(1TB) for the Basic SKU and between 5120 MB(5GB) and 4194304 MB(4TB) for General Purpose/Memory Optimized SKUs."
type = number
default = 5120
}
variable "backup_retention_days" {
description = "Backup retention days for the server, supported values are between 7 and 35 days."
type = number
default = 10
}
variable "geo_redundant_backup_enabled" {
description = "Turn Geo-redundant server backups on/off. Not available for the Basic tier."
type = bool
default = true
}
variable "postgresql_configurations" {
type = map(string)
default = {}
description = "PostgreSQL configurations to enable"
}
variable "postgresql_version" {
type = string
default = "11"
description = "Valid values are 9.5, 9.6, 10, 10.0, and 11"
}
variable "force_ssl" {
type = bool
default = true
description = "Force usage of SSL"
}
variable "vnet_rules" {
type = map(string)
description = "Map of vnet rules to create"
default = {}
}
variable "databases_names" {
description = "List of databases names"
type = list(string)
}
variable "databases_charset" {
type = map(string)
description = "Valid PostgreSQL charset : https://www.postgresql.org/docs/current/multibyte.html#CHARSET-TABLE"
default = {}
}
variable "databases_collation" {
type = map(string)
description = "Valid PostgreSQL collation : http://www.postgresql.cn/docs/9.4/collation.html - be careful about https://docs.microsoft.com/en-us/windows/win32/intl/locale-names?redirectedfrom=MSDN"
default = {}
}
variable "ssl_minimal_tls_version_enforced" {
type = string
default = null
description = "The mimimun TLS version to support on the sever"
}
variable "public_network_access_enabled" {
description = "Whether or not public network access is allowed for this server."
type = bool
default = false
}