postgresql

dodevops/postgresql/azure

Terraform Module HCL AZURE

Highly opinionated management of Azure DB for PostgreSQL

Install
module "postgresql" {
source = "dodevops/postgresql/azure"
version = "0.12.1"
}
plain text: /constructs/tfmod-dodevops-postgresql-azure/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure DB for PostgreSQL Introduction This module manages resources for Azure DB for PostgreSQL. Usage Instantiate the module by calling it from Terraform like this: ``hcl module "azure-postgresql" { source = "dodevops/postgresql/azure" version = " " } `` Requirements The following requirements are needed by this module: - terraform (>=1.0.0) - azurerm (>=3.63.0) Providers The following providers are used by this module: - azurerm (>=3.63.0) Modules No modules. Resources The following resources are used by this module: - azurerm_postgresql_configuration.connection-throttling-normal (resource) - azurerm_postgresql_configuration.log-checkpoints-normal (resource) - azurerm_postgresql_configuration.log-connections-normal (resource) - azurerm_postgresql_configuration.params (resource) - azurerm_

Inputs (22)
NameTypeDescriptionDefault
projectstringThree letter project key required
collationstringCollation for the databases, which needs to be a [valid PostgreSQL collation](ht required
charsetstringCharset for the databases, which needs to be a [valid PostgreSQL charset](https: required
locationstringThe azure location used for azure required
resource_groupstringAzure Resource Group to use required
admin_passwordstringAdmin password required
stagestringStage for this ressource group required
database_suffixeslist(string)List of suffixes for databases to be created required
database_versionstringDatabase version to use"11"
database_storagestringRequired database storage (in MB) (flexible server has a defined set of storage "5120"
database_flexibleboolWhether to use Azure's flexible database servicefalse
paramsmap(string)A map of server parameters to set{}
backup_retention_daysnumberNumber of days to keep backups7
suffixstringNaming suffix to allow multiple instances of this module""
geo_redundant_backup_enabledboolTurn Geo-redundant server backups on/off. This allows you to choose between locafalse
database_host_skustringSKU for the database server to use. Single server uses values like GP_Gen5_2, fl"GP_Gen5_2"
autogrowboolEnable/Disable auto-growing of the storage. Storage auto-grow prevents your servtrue
availability_zonenumberThe availability zone the Flexible Server should be placed in (only flexible ser1
admin_loginstringAdmin login"psql"
public_accessboolWether to allow public access to the database server. True will create firewall false
allowed_ipsmap(object({ start = strinA hash of permissions to access the database server by ip. The hash key is the n{}
subnetsmap(string)Maps of prefix => subnet id that has access to the server (only single server){}
Outputs (7)
admin_login — The administrative username
admin_password — The password of the administrative user
databases — Names of the created databases
database_ids — IDs of the created databases
server_fqdn — FQDN of the database service
server_id — ID of the database server
server_name — Name of the database server
Resources (10)
azurerm_postgresql_configurationazurerm_postgresql_databaseazurerm_postgresql_firewall_ruleazurerm_postgresql_flexible_serverazurerm_postgresql_flexible_server_configurationazurerm_postgresql_flexible_server_databaseazurerm_postgresql_flexible_server_firewall_ruleazurerm_postgresql_serverazurerm_postgresql_virtual_network_ruleazurerm_private_endpoint
Details
FrameworkTerraform Module
LanguageHCL
Version0.12.1
Cloud AZURE
★ Stars3
Forks2
Total downloads5.8k
Inputs22
Outputs7
Resources10
Examples1
LicenseMIT
Namespacedodevops
Updated