2022-12-08 04:41:13 +03:00
variable " administrator_login " {
description = " The Administrator Login for the PostgreSQL Server. Changing this forces a new resource to be created. "
2020-09-07 10:51:30 +03:00
type = string
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " administrator_password " {
description = " The Password associated with the administrator_login for the PostgreSQL Server. "
2020-09-07 10:51:30 +03:00
type = string
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " location " {
description = " Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. "
2020-09-07 10:51:30 +03:00
type = string
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " resource_group_name " {
description = " The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created. "
2020-09-07 10:51:30 +03:00
type = string
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " server_name " {
description = " Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created. "
type = string
2018-10-10 07:34:38 +03:00
}
variable " backup_retention_days " {
2018-10-10 21:42:41 +03:00
description = " Backup retention days for the server, supported values are between 7 and 35 days. "
2020-09-07 10:51:30 +03:00
type = number
2018-10-10 07:34:38 +03:00
default = 7
}
2022-12-08 04:41:13 +03:00
variable " db_charset " {
description = " Specifies the Charset for the PostgreSQL Database, which needs to be a valid PostgreSQL Charset. Changing this forces a new resource to be created. "
type = string
default = " UTF8 "
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " db_collation " {
description = " Specifies the Collation for the PostgreSQL Database, which needs to be a valid PostgreSQL Collation. Note that Microsoft uses different notation - en-US instead of en_US. Changing this forces a new resource to be created. "
2020-09-07 10:51:30 +03:00
type = string
2022-12-08 04:41:13 +03:00
default = " English_United States.1252 "
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " db_names " {
description = " The list of names of the PostgreSQL Database, which needs to be a valid PostgreSQL identifier. Changing this forces a new resource to be created. "
type = list ( string )
default = [ ]
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " firewall_rule_prefix " {
description = " Specifies prefix for firewall rule names. "
2020-09-07 10:51:30 +03:00
type = string
2022-12-08 04:41:13 +03:00
default = " firewall- "
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " firewall_rules " {
description = " The list of maps, describing firewall rules. Valid map items: name, start_ip, end_ip. "
type = list ( map ( string ) )
default = [ ]
}
variable " geo_redundant_backup_enabled " {
description = " Enable Geo-redundant or not for server backup. Valid values for this property are Enabled or Disabled, not supported for the basic tier. "
2020-09-07 10:51:30 +03:00
type = bool
2020-07-17 05:24:56 +03:00
default = true
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " infrastructure_encryption_enabled " {
description = " Whether or not infrastructure is encrypted for this server "
2021-02-24 06:09:32 +03:00
type = bool
default = true
}
2022-12-08 04:41:13 +03:00
variable " postgresql_configurations " {
description = " A map with PostgreSQL configurations to enable. "
type = map ( string )
default = { }
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " public_network_access_enabled " {
description = " Whether or not public network access is allowed for this server. Possible values are Enabled and Disabled. "
type = bool
default = false
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " server_version " {
description = " Specifies the version of PostgreSQL to use. Valid values are 9.5, 9.6, and 10.0. Changing this forces a new resource to be created. "
2020-09-07 10:51:30 +03:00
type = string
2022-12-08 04:41:13 +03:00
default = " 9.5 "
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " sku_name " {
description = " Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the tier + family + cores pattern (e.g. B_Gen4_1, GP_Gen5_8). "
2020-09-07 10:51:30 +03:00
type = string
2022-12-08 04:41:13 +03:00
default = " GP_Gen5_4 "
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " ssl_enforcement_enabled " {
description = " Specifies if SSL should be enforced on connections. Possible values are Enabled and Disabled. "
type = bool
default = true
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
variable " ssl_minimal_tls_version_enforced " {
description = " The minimum TLS version to support on the sever "
2020-09-07 10:51:30 +03:00
type = string
2022-12-08 04:41:13 +03:00
default = " TLS1_2 "
2018-10-10 07:34:38 +03:00
}
2022-12-08 04:41:13 +03:00
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 = 102400
2018-10-10 07:34:38 +03:00
}
2018-12-12 18:52:45 +03:00
variable " tags " {
description = " A map of tags to set on every taggable resources. Empty by default. "
2020-07-17 05:24:56 +03:00
type = map ( string )
2018-12-12 18:52:45 +03:00
default = { }
}
2019-03-20 21:29:05 +03:00
2022-12-08 04:41:13 +03:00
variable " threat_detection_policy " {
description = " Threat detection policy configuration, known in the API as Server Security Alerts Policy "
type = object (
{
enabled = optional ( bool )
disabled_alerts = optional ( set ( string ) )
email_account_admins = optional ( bool )
email_addresses = optional ( set ( string ) )
retention_days = optional ( number )
storage_account_access_key = optional ( string )
storage_endpoint = optional ( string )
}
)
sensitive = true
default = null
2019-03-20 21:29:05 +03:00
}
2020-07-17 05:24:56 +03:00
2022-12-08 04:41:13 +03:00
variable " vnet_rule_name_prefix " {
description = " Specifies prefix for vnet rule names. "
type = string
default = " postgresql-vnet-rule- "
}
variable " vnet_rules " {
description = " The list of maps, describing vnet rules. Valud map items: name, subnet_id. "
type = list ( map ( string ) )
default = [ ]
}