2018-10-10 07:34:38 +03:00
variable " resource_group_name " {
2018-10-10 21:42:41 +03:00
description = " The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created. "
2018-10-10 07:34:38 +03:00
}
variable " location " {
2018-10-10 21:42:41 +03:00
description = " Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. "
2018-10-10 07:34:38 +03:00
}
variable " server_name " {
2018-10-10 21:42:41 +03:00
description = " Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created. "
2018-10-10 07:34:38 +03:00
}
variable " sku_name " {
2018-10-10 21:42:41 +03:00
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). "
2018-10-10 07:34:38 +03:00
default = " B_Gen4_2 "
}
variable " sku_capacity " {
2018-10-10 21:42:41 +03:00
description = " The scale up/out capacity, representing server's compute units "
2018-10-10 07:34:38 +03:00
default = " 2 "
}
variable " sku_tier " {
2018-10-10 21:42:41 +03:00
description = " The tier of the particular SKU. Possible values are Basic, GeneralPurpose, and MemoryOptimized. "
2018-10-10 07:34:38 +03:00
default = " Basic "
}
variable " sku_family " {
2018-10-10 21:42:41 +03:00
description = " The family of hardware Gen4 or Gen5. "
2018-10-10 07:34:38 +03:00
default = " Gen4 "
}
variable " storage_mb " {
2018-10-10 21:42:41 +03:00
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. "
2018-10-10 07:34:38 +03:00
default = 5120
}
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. "
2018-10-10 07:34:38 +03:00
default = 7
}
variable " geo_redundant_backup " {
2018-10-10 21:42:41 +03:00
description = " Enable Geo-redundant or not for server backup. Valid values for this property are Enabled or Disabled, not supported for the basic tier. "
2018-10-10 07:34:38 +03:00
default = " Disabled "
}
variable " administrator_login " {
2018-10-10 21:42:41 +03:00
description = " The Administrator Login for the PostgreSQL Server. Changing this forces a new resource to be created. "
2018-10-10 07:34:38 +03:00
}
variable " administrator_password " {
2018-10-10 21:42:41 +03:00
description = " The Password associated with the administrator_login for the PostgreSQL Server. "
2018-10-10 07:34:38 +03:00
}
2018-10-12 01:43:06 +03:00
variable " server_version " {
2018-10-10 21:42:41 +03:00
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. "
2018-10-10 07:34:38 +03:00
default = " 9.5 "
}
variable " ssl_enforcement " {
2018-10-10 21:42:41 +03:00
description = " Specifies if SSL should be enforced on connections. Possible values are Enabled and Disabled. "
2018-10-10 07:34:38 +03:00
default = " Enabled "
}
variable " db_names " {
2018-10-10 21:42:41 +03:00
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. "
2018-10-10 07:34:38 +03:00
default = [ ]
}
variable " db_charset " {
2018-10-10 21:42:41 +03:00
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. "
2018-10-10 07:34:38 +03:00
default = " UTF8 "
}
variable " db_collation " {
2018-10-10 21:42:41 +03:00
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. "
2018-10-10 07:34:38 +03:00
default = " English_United States.1252 "
}
2018-10-10 21:42:41 +03:00
variable " firewall_rule_prefix " {
description = " Specifies prefix for firewall rule names. "
2018-10-10 07:34:38 +03:00
default = " firewall- "
}
2018-10-10 21:42:41 +03:00
variable " firewall_rules " {
description = " The list of maps, describing firewall rules. Valid map items: name, start_ip, end_ip. "
2018-10-10 07:34:38 +03:00
default = [ ]
}
variable " vnet_rule_name_prefix " {
2018-10-10 21:42:41 +03:00
description = " Specifies prefix for vnet rule names. "
2018-10-10 07:34:38 +03:00
default = " postgresql-vnet-rule- "
}
variable " vnet_rules " {
2018-10-10 21:42:41 +03:00
description = " The list of maps, describing vnet rules. Valud map items: name, subnet_id. "
2018-10-10 07:34:38 +03:00
default = [ ]
}
2018-12-12 18:52:45 +03:00
variable " tags " {
description = " A map of tags to set on every taggable resources. Empty by default. "
type = "map "
default = { }
}