{"id":28500100,"url":"https://github.com/opszero/terraform-azure-postgresql","last_synced_at":"2026-01-30T02:45:18.493Z","repository":{"id":296990132,"uuid":"995173599","full_name":"opszero/terraform-azure-postgresql","owner":"opszero","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-30T17:46:36.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T18:44:38.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opszero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORT","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["abhiyerra"],"custom":["https://www.opszero.com"]}},"created_at":"2025-06-03T04:43:24.000Z","updated_at":"2025-06-30T17:46:41.000Z","dependencies_parsed_at":"2025-06-03T19:42:54.867Z","dependency_job_id":"8f7199c2-093a-4d03-a18f-f0bcc2ff8c63","html_url":"https://github.com/opszero/terraform-azure-postgresql","commit_stats":null,"previous_names":["opszero/terraform-azure-postgresql"],"tags_count":0,"template":false,"template_full_name":"opszero/terraform-template","purl":"pkg:github/opszero/terraform-azure-postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Fterraform-azure-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Fterraform-azure-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Fterraform-azure-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Fterraform-azure-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opszero","download_url":"https://codeload.github.com/opszero/terraform-azure-postgresql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opszero%2Fterraform-azure-postgresql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263445789,"owners_count":23467612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T15:05:52.057Z","updated_at":"2026-01-30T02:45:18.487Z","avatar_url":"https://github.com/opszero.png","language":"HCL","funding_links":["https://github.com/sponsors/abhiyerra","https://www.opszero.com"],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGIN_TF_DOCS --\u003e\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_azurerm\"\u003e\u003c/a\u003e [azurerm](#provider\\_azurerm) | ~\u003e 4.58.0 |\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_administrator_login\"\u003e\u003c/a\u003e [administrator\\_login](#input\\_administrator\\_login) | The Administrator Login for the PostgreSQL Server. Changing this forces a new resource to be created. | `string` | n/a | yes |\n| \u003ca name=\"input_administrator_password\"\u003e\u003c/a\u003e [administrator\\_password](#input\\_administrator\\_password) | The Password associated with the administrator\\_login for the PostgreSQL Server. | `string` | n/a | yes |\n| \u003ca name=\"input_auto_grow_enabled\"\u003e\u003c/a\u003e [auto\\_grow\\_enabled](#input\\_auto\\_grow\\_enabled) | (Optional) Enable or disable incremental automatic growth of database space. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is `true`. | `bool` | `true` | no |\n| \u003ca name=\"input_backup_retention_days\"\u003e\u003c/a\u003e [backup\\_retention\\_days](#input\\_backup\\_retention\\_days) | Backup retention days for the server, supported values are between 7 and 35 days. | `number` | `7` | no |\n| \u003ca name=\"input_create_mode\"\u003e\u003c/a\u003e [create\\_mode](#input\\_create\\_mode) | (Optional) The creation mode. Can be used to restore or replicate existing servers. Possible values are `Default`, `Replica`, `GeoRestore`, and `PointInTimeRestore`. Defaults to `Default.` | `string` | `\"Default\"` | no |\n| \u003ca name=\"input_creation_source_server_id\"\u003e\u003c/a\u003e [creation\\_source\\_server\\_id](#input\\_creation\\_source\\_server\\_id) | (Optional) For creation modes other than `Default`, the source server ID to use. | `string` | `null` | no |\n| \u003ca name=\"input_db_charset\"\u003e\u003c/a\u003e [db\\_charset](#input\\_db\\_charset) | Specifies the Charset for the PostgreSQL Database, which needs to be a valid PostgreSQL Charset. Changing this forces a new resource to be created. | `string` | `\"UTF8\"` | no |\n| \u003ca name=\"input_db_collation\"\u003e\u003c/a\u003e [db\\_collation](#input\\_db\\_collation) | 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. | `string` | `\"English_United States.1252\"` | no |\n| \u003ca name=\"input_db_names\"\u003e\u003c/a\u003e [db\\_names](#input\\_db\\_names) | 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. | `list(string)` | `[]` | no |\n| \u003ca name=\"input_firewall_rule_prefix\"\u003e\u003c/a\u003e [firewall\\_rule\\_prefix](#input\\_firewall\\_rule\\_prefix) | Specifies prefix for firewall rule names. | `string` | `\"firewall-\"` | no |\n| \u003ca name=\"input_firewall_rules\"\u003e\u003c/a\u003e [firewall\\_rules](#input\\_firewall\\_rules) | The list of maps, describing firewall rules. Valid map items: name, start\\_ip, end\\_ip. | `list(map(string))` | `[]` | no |\n| \u003ca name=\"input_geo_redundant_backup_enabled\"\u003e\u003c/a\u003e [geo\\_redundant\\_backup\\_enabled](#input\\_geo\\_redundant\\_backup\\_enabled) | Enable Geo-redundant or not for server backup. Valid values for this property are Enabled or Disabled, not supported for the basic tier. | `bool` | `true` | no |\n| \u003ca name=\"input_infrastructure_encryption_enabled\"\u003e\u003c/a\u003e [infrastructure\\_encryption\\_enabled](#input\\_infrastructure\\_encryption\\_enabled) | Whether or not infrastructure is encrypted for this server | `bool` | `true` | no |\n| \u003ca name=\"input_location\"\u003e\u003c/a\u003e [location](#input\\_location) | Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. | `string` | n/a | yes |\n| \u003ca name=\"input_postgresql_configurations\"\u003e\u003c/a\u003e [postgresql\\_configurations](#input\\_postgresql\\_configurations) | A map with PostgreSQL configurations to enable. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_public_network_access_enabled\"\u003e\u003c/a\u003e [public\\_network\\_access\\_enabled](#input\\_public\\_network\\_access\\_enabled) | Whether or not public network access is allowed for this server. Possible values are Enabled and Disabled. | `bool` | `false` | no |\n| \u003ca name=\"input_resource_group_name\"\u003e\u003c/a\u003e [resource\\_group\\_name](#input\\_resource\\_group\\_name) | The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created. | `string` | n/a | yes |\n| \u003ca name=\"input_server_name\"\u003e\u003c/a\u003e [server\\_name](#input\\_server\\_name) | Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created. | `string` | n/a | yes |\n| \u003ca name=\"input_server_version\"\u003e\u003c/a\u003e [server\\_version](#input\\_server\\_version) | Specifies the version of PostgreSQL to use. Valid values are `9.5`, `9.6`, `10.0`, `10.2` and `11`. Changing this forces a new resource to be created. | `string` | `\"9.5\"` | no |\n| \u003ca name=\"input_sku_name\"\u003e\u003c/a\u003e [sku\\_name](#input\\_sku\\_name) | 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). | `string` | `\"GP_Gen5_4\"` | no |\n| \u003ca name=\"input_ssl_enforcement_enabled\"\u003e\u003c/a\u003e [ssl\\_enforcement\\_enabled](#input\\_ssl\\_enforcement\\_enabled) | Specifies if SSL should be enforced on connections. Possible values are Enabled and Disabled. | `bool` | `true` | no |\n| \u003ca name=\"input_ssl_minimal_tls_version_enforced\"\u003e\u003c/a\u003e [ssl\\_minimal\\_tls\\_version\\_enforced](#input\\_ssl\\_minimal\\_tls\\_version\\_enforced) | (Optional) The minimum TLS version to support on the sever. Possible values are `TLSEnforcementDisabled`, `TLS1_0`, `TLS1_1`, and `TLS1_2`. Defaults to `TLS1_2`. `ssl_minimal_tls_version_enforced` must be set to `TLSEnforcementDisabled` when `ssl_enforcement_enabled` is set to `false`. | `string` | `\"TLS1_2\"` | no |\n| \u003ca name=\"input_storage_mb\"\u003e\u003c/a\u003e [storage\\_mb](#input\\_storage\\_mb) | 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. | `number` | `102400` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | A map of tags to set on every taggable resources. Empty by default. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_threat_detection_policy\"\u003e\u003c/a\u003e [threat\\_detection\\_policy](#input\\_threat\\_detection\\_policy) | Threat detection policy configuration, known in the API as Server Security Alerts Policy | \u003cpre\u003eobject(\u003cbr/\u003e    {\u003cbr/\u003e      enabled                    = optional(bool)\u003cbr/\u003e      disabled_alerts            = optional(set(string))\u003cbr/\u003e      email_account_admins       = optional(bool)\u003cbr/\u003e      email_addresses            = optional(set(string))\u003cbr/\u003e      retention_days             = optional(number)\u003cbr/\u003e      storage_account_access_key = optional(string)\u003cbr/\u003e      storage_endpoint           = optional(string)\u003cbr/\u003e    }\u003cbr/\u003e  )\u003c/pre\u003e | `null` | no |\n| \u003ca name=\"input_tracing_tags_enabled\"\u003e\u003c/a\u003e [tracing\\_tags\\_enabled](#input\\_tracing\\_tags\\_enabled) | Whether enable tracing tags that generated by BridgeCrew Yor. | `bool` | `false` | no |\n| \u003ca name=\"input_tracing_tags_prefix\"\u003e\u003c/a\u003e [tracing\\_tags\\_prefix](#input\\_tracing\\_tags\\_prefix) | Default prefix for generated tracing tags | `string` | `\"avm_\"` | no |\n| \u003ca name=\"input_vnet_rule_name_prefix\"\u003e\u003c/a\u003e [vnet\\_rule\\_name\\_prefix](#input\\_vnet\\_rule\\_name\\_prefix) | Specifies prefix for vnet rule names. | `string` | `\"postgresql-vnet-rule-\"` | no |\n| \u003ca name=\"input_vnet_rules\"\u003e\u003c/a\u003e [vnet\\_rules](#input\\_vnet\\_rules) | The list of maps, describing vnet rules. Valud map items: name, subnet\\_id. | `list(map(string))` | `[]` | no |\n## Resources\n\n| Name | Type |\n|------|------|\n| [azurerm_postgresql_configuration.db_configs](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_configuration) | resource |\n| [azurerm_postgresql_database.dbs](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_database) | resource |\n| [azurerm_postgresql_firewall_rule.firewall_rules](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_firewall_rule) | resource |\n| [azurerm_postgresql_server.server](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_server) | resource |\n| [azurerm_postgresql_virtual_network_rule.vnet_rules](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_virtual_network_rule) | resource |\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_administrator_login\"\u003e\u003c/a\u003e [administrator\\_login](#output\\_administrator\\_login) | The Administrator login for the PostgreSQL Server |\n| \u003ca name=\"output_administrator_password\"\u003e\u003c/a\u003e [administrator\\_password](#output\\_administrator\\_password) | The Password associated with the `administrator_login` for the PostgreSQL Server |\n| \u003ca name=\"output_database_ids\"\u003e\u003c/a\u003e [database\\_ids](#output\\_database\\_ids) | The list of all database resource ids |\n| \u003ca name=\"output_firewall_rule_ids\"\u003e\u003c/a\u003e [firewall\\_rule\\_ids](#output\\_firewall\\_rule\\_ids) | The list of all firewall rule resource ids |\n| \u003ca name=\"output_server_fqdn\"\u003e\u003c/a\u003e [server\\_fqdn](#output\\_server\\_fqdn) | The fully qualified domain name (FQDN) of the PostgreSQL server |\n| \u003ca name=\"output_server_id\"\u003e\u003c/a\u003e [server\\_id](#output\\_server\\_id) | The resource id of the PostgreSQL server |\n| \u003ca name=\"output_server_name\"\u003e\u003c/a\u003e [server\\_name](#output\\_server\\_name) | The name of the PostgreSQL server |\n| \u003ca name=\"output_vnet_rule_ids\"\u003e\u003c/a\u003e [vnet\\_rule\\_ids](#output\\_vnet\\_rule\\_ids) | The list of all vnet rule resource ids |\n# 🚀 Built by opsZero!\n\n\u003ca href=\"https://opszero.com\"\u003e\u003cimg src=\"https://opszero.com/img/common/opsZero-Logo-Large.webp\" width=\"300px\"/\u003e\u003c/a\u003e\n\n[opsZero](https://opszero.com) provides software and consulting for Cloud + AI. With our decade plus of experience scaling some of the world’s most innovative companies we have developed deep expertise in Kubernetes, DevOps, FinOps, and Compliance.\n\nOur software and consulting solutions enable organizations to:\n\n- migrate workloads to the Cloud\n- setup compliance frameworks including SOC2, HIPAA, PCI-DSS, ITAR, FedRamp, CMMC, and more.\n- FinOps solutions to reduce the cost of running Cloud workloads\n- Kubernetes optimized for web scale and AI workloads\n- finding underutilized Cloud resources\n- setting up custom AI training and delivery\n- building data integrations and scrapers\n- modernizing onto modern ARM based processors\n\nWe do this with a high-touch support model where you:\n\n- Get access to us on Slack, Microsoft Teams or Email\n- Get 24/7 coverage of your infrastructure\n- Get an accelerated migration to Kubernetes\n\nPlease [schedule a call](https://calendly.com/opszero-llc/discovery) if you need support.\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n\u003cdiv style=\"display: block\"\u003e\n  \u003cimg src=\"https://opszero.com/img/common/aws-advanced.png\" alt=\"AWS Advanced Tier\" width=\"150px\" \u003e\n  \u003cimg src=\"https://opszero.com/img/common/aws-devops-competency.png\" alt=\"AWS DevOps Competency\" width=\"150px\" \u003e\n  \u003cimg src=\"https://opszero.com/img/common/aws-eks.png\" alt=\"AWS EKS Delivery\" width=\"150px\" \u003e\n  \u003cimg src=\"https://opszero.com/img/common/aws-public-sector.png\" alt=\"AWS Public Sector\" width=\"150px\" \u003e\n\u003c/div\u003e\n\u003c!-- END_TF_DOCS --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopszero%2Fterraform-azure-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopszero%2Fterraform-azure-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopszero%2Fterraform-azure-postgresql/lists"}