db-postgresql

claranet/db-postgresql/azurerm

Terraform Module HCL AZURERM

Terraform module composition (feature) for Azure PostGreSQL Database

Install
module "db-postgresql" {
source = "claranet/db-postgresql/azurerm"
version = "6.1.1"
}
plain text: /constructs/tfmod-claranet-db-postgresql-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

DEPRECATED - Azure Managed PostgreSQL Service ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![TF Registry](https://registry.terraform.io/modules/claranet/db-postgresql/azurerm/) | ⚠ This module is deprecated, please use db-postgresql-flexible module | |--| This module creates an Azure PostgreSQL server with databases along with logging activated, firewall rules and virtual network rules. A user is created for each database created with this module. This module does not allow users to create new objects in the public schema regarding the CVE-2018-1058. Global versioning rule for Claranet Azure modules | Module version | Terraform version | AzureRM version | | -------------- | ----------------- | --------------- | | >= 7.x.x | 1.3.x | >= 3.0 | | >= 6.x.x | 1.x |

Inputs (36)
NameTypeDescriptionDefault
resource_group_namestringName of the application ressource group, herited from infra module required
databases_nameslist(string)List of databases names required
location_shortstringShort string for Azure location. required
stackstringName of application stack required
administrator_passwordstringPostgreSQL administrator password. Strong Password : https://docs.microsoft.com/ required
locationstringAzure location for Key Vault. required
allowed_cidrsmap(string)Map of authorized cidrs, must be provided using remote states cloudpublic/cloudp required
logs_destinations_idslist(string)List of destination resources IDs for logs diagnostic destination. Can be `Stora required
administrator_loginstringPostgreSQL administrator login required
environmentstringName of application's environnement required
client_namestringName of client required
use_caf_naming_for_databasesboolUse the Azure CAF naming provider to generate databases name.false
logs_metrics_categorieslist(string)Metrics categories to send to destinations.null
custom_server_namestringCustom Server Name identifier""
extra_tagsmap(string)Extra tags to add{}
tierstringTier for PostgreSQL server sku : https://docs.microsoft.com/en-us/azure/postgres"GeneralPurpose"
vnet_rulesmap(string)Map of vnet rules to create{}
public_network_access_enabledboolWhether or not public network access is allowed for this server.false
logs_retention_daysnumberNumber of days to keep logs on storage account.30
capacitynumberCapacity for PostgreSQL server sku - number of vCores : https://docs.microsoft.c4
postgresql_versionstringValid values are 9.5, 9.6, 10, 10.0, and 11"11"
name_prefixstringOptional prefix for the generated name""
default_tags_enabledboolOption to enable or disable default tagstrue
geo_redundant_backup_enabledboolTurn Geo-redundant server backups on/off. Not available for the Basic tier.true
postgresql_configurationsmap(string)PostgreSQL configurations to enable{}
backup_retention_daysnumberBackup retention days for the server, supported values are between 7 and 35 days10
name_suffixstringOptional suffix for the generated name""
storage_mbnumberMax storage allowed for a server. Possible values are between 5120 MB(5GB) and 15120
use_caf_namingboolUse the Azure CAF naming provider to generate default resource name. `custom_sertrue
custom_diagnostic_settings_namestringCustom name of the diagnostics settings, name will be 'default' if not set."default"
auto_grow_enabledboolEnable/Disable auto-growing of the storage.false
Outputs (11)
postgresql_configurations — The map of all postgresql configurations set
terraform_module — Information about this Terraform module
postgresql_administrator_login — Administrator login for PostgreSQL server
postgresql_firewall_rules — Map of PostgreSQL created rules
postgresql_fqdn — FQDN of the PostgreSQL server
postgresql_server_id — PostgreSQL server ID
postgresql_vnet_rules — The map of all vnet rules
postgresql_administrator_password — Administrator password for PostgreSQL server
postgresql_databases_names — Map of databases names
postgresql_database_ids — The map of all database resource ids
postgresql_server_name — PostgreSQL server name
Resources (5)
azurerm_postgresql_configurationazurerm_postgresql_databaseazurerm_postgresql_firewall_ruleazurerm_postgresql_serverazurerm_postgresql_virtual_network_rule
Details
FrameworkTerraform Module
LanguageHCL
Version6.1.1
Cloud AZURERM
★ Stars6
Forks7
Total downloads54.1k
Inputs36
Outputs11
Resources5
Examples1
LicenseApache-2.0
Namespaceclaranet
Updated