This module manages Azure PostgreSQL.
<-- This file is autogenerated, please do not change. -->
Name | Version |
---|---|
terraform | ~>1.0 |
Name | Version |
---|---|
azurerm | n/a |
Name | Type |
---|---|
azurerm_postgresql_database.postgresql_database | resource |
azurerm_postgresql_firewall_rule.postgresql_firewall_rule | resource |
azurerm_postgresql_server.postgresql_server | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
postgresql_database | resource definition, default settings are defined within locals and merged with var settings | any |
{} |
no |
postgresql_firewall_rule | resource definition, default settings are defined within locals and merged with var settings | any |
{} |
no |
postgresql_server | resource definition, default settings are defined within locals and merged with var settings | any |
{} |
no |
Name | Description |
---|---|
postgresql_database | azurerm_postgresql_database |
postgresql_server | azurerm_postgresql_server |
module "postgresql" {
source = "registry.terraform.io/T-Systems-MMS/postgresql/azurerm"
postgresql_server = {
master = {
name = "master-psql"
location = "westeurope"
resource_group_name = "rg-service-env"
sku_name = "B_Gen5_2"
version = "11"
administrator_login = "dba"
administrator_login_password = data.azurerm_key_vault_secret.dba.value
backup_retention_days = "7"
geo_redundant_backup_enabled = false
ssl_enforcement_enabled = true
storage_mb = "5120"
/** Basic tier does not support false option */
public_network_access_enabled = true
}
}
postgresql_firewall_rule = {
master = {
name = "proxy"
resource_group_name = "rg-service-env"
server_name = module.postgresql.postgresql_server.master.name
start_ip_address = "127.0.0.1"
end_ip_address = "127.0.0.1"
}
}
}