{"id":20357756,"url":"https://github.com/avidhara/terraform-azurerm-postgresql","last_synced_at":"2026-05-20T14:38:29.697Z","repository":{"id":206436685,"uuid":"620094802","full_name":"avidhara/terraform-azurerm-postgresql","owner":"avidhara","description":"Terraform module for Azure Flexible Postgres Database","archived":false,"fork":false,"pushed_at":"2025-05-27T05:17:43.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T06:25:32.386Z","etag":null,"topics":["azure","azure-postgres","terraform","terraform-azure","terraform-azurerm","terraform-module","terraform-modules"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/avidhara/postgresql/azurerm/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avidhara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-28T02:37:20.000Z","updated_at":"2025-05-27T05:17:46.000Z","dependencies_parsed_at":"2023-11-09T16:27:16.665Z","dependency_job_id":"54eb6f34-c912-433c-afd9-c2a77c2729f8","html_url":"https://github.com/avidhara/terraform-azurerm-postgresql","commit_stats":null,"previous_names":["ionicloud/terraform-azurerm-postgresql","cloudpragna/terraform-azurerm-postgresql","avidhara/terraform-azurerm-postgresql"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/avidhara/terraform-azurerm-postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidhara%2Fterraform-azurerm-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidhara%2Fterraform-azurerm-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidhara%2Fterraform-azurerm-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidhara%2Fterraform-azurerm-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avidhara","download_url":"https://codeload.github.com/avidhara/terraform-azurerm-postgresql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidhara%2Fterraform-azurerm-postgresql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263957820,"owners_count":23535604,"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":["azure","azure-postgres","terraform","terraform-azure","terraform-azurerm","terraform-module","terraform-modules"],"created_at":"2024-11-14T23:23:34.373Z","updated_at":"2026-05-20T14:38:24.675Z","avatar_url":"https://github.com/avidhara.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform module for Azure Postgresql\n\n## How to use it as a module\n\n```hcl\n\n```\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.13.1 |\n| \u003ca name=\"requirement_azurerm\"\u003e\u003c/a\u003e [azurerm](#requirement\\_azurerm) | \u003e= 3.0.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_azurerm\"\u003e\u003c/a\u003e [azurerm](#provider\\_azurerm) | \u003e= 3.0.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [azurerm_postgresql_flexible_server.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_flexible_server) | resource |\n| [azurerm_postgresql_flexible_server_configuration.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_flexible_server_configuration) | resource |\n| [azurerm_postgresql_flexible_server_database.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_flexible_server_database) | resource |\n| [azurerm_postgresql_flexible_server_firewall_rule.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_flexible_server_firewall_rule) | resource |\n| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_ad_logins\"\u003e\u003c/a\u003e [ad\\_logins](#input\\_ad\\_logins) | (Optional) The login names of the principal to set as the server administrator | `list(string)` | `[]` | no |\n| \u003ca name=\"input_administrator_login\"\u003e\u003c/a\u003e [administrator\\_login](#input\\_administrator\\_login) | (Required) The Administrator login for the PostgreSQL Flexible Server. Required when create\\_mode is Default and authentication.password\\_auth\\_enabled is true. | `string` | n/a | yes |\n| \u003ca name=\"input_administrator_password\"\u003e\u003c/a\u003e [administrator\\_password](#input\\_administrator\\_password) | (Required) The Password associated with the administrator\\_login for the PostgreSQL Flexible Server. Required when create\\_mode is Default and authentication.password\\_auth\\_enabled is true. | `string` | n/a | yes |\n| \u003ca name=\"input_authentication\"\u003e\u003c/a\u003e [authentication](#input\\_authentication) | (Optional) An authentication block | `any` | `[]` | no |\n| \u003ca name=\"input_backup_retention_days\"\u003e\u003c/a\u003e [backup\\_retention\\_days](#input\\_backup\\_retention\\_days) | (Optional) The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days. | `number` | `35` | no |\n| \u003ca name=\"input_create_mode\"\u003e\u003c/a\u003e [create\\_mode](#input\\_create\\_mode) | (Optional) The creation mode which can be used to restore or replicate existing servers. Possible values are Default, PointInTimeRestore, Replica and Update. Changing this forces a new PostgreSQL Flexible Server to be created. | `string` | `\"Default\"` | no |\n| \u003ca name=\"input_create_pgsql_server\"\u003e\u003c/a\u003e [create\\_pgsql\\_server](#input\\_create\\_pgsql\\_server) | Do you want to create Postgresql flexible server | `bool` | `true` | no |\n| \u003ca name=\"input_customer_managed_key\"\u003e\u003c/a\u003e [customer\\_managed\\_key](#input\\_customer\\_managed\\_key) | (Optional) A customer\\_managed\\_key block, Changing this forces a new resource to be created. | `any` | `[]` | no |\n| \u003ca name=\"input_databases\"\u003e\u003c/a\u003e [databases](#input\\_databases) | (Optional) Databases you want to provision in the Server | `any` | `{}` | no |\n| \u003ca name=\"input_delegated_subnet_id\"\u003e\u003c/a\u003e [delegated\\_subnet\\_id](#input\\_delegated\\_subnet\\_id) | Optional) The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created. | `string` | `null` | no |\n| \u003ca name=\"input_geo_redundant_backup_enabled\"\u003e\u003c/a\u003e [geo\\_redundant\\_backup\\_enabled](#input\\_geo\\_redundant\\_backup\\_enabled) | (Optional) Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created. | `bool` | `false` | no |\n| \u003ca name=\"input_high_availability\"\u003e\u003c/a\u003e [high\\_availability](#input\\_high\\_availability) | (Optional) A high\\_availability block | `any` | `[]` | no |\n| \u003ca name=\"input_identity\"\u003e\u003c/a\u003e [identity](#input\\_identity) | (Optional) An identity block | `any` | `[]` | no |\n| \u003ca name=\"input_location\"\u003e\u003c/a\u003e [location](#input\\_location) | (Required) The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created. | `string` | n/a | yes |\n| \u003ca name=\"input_maintenance_window\"\u003e\u003c/a\u003e [maintenance\\_window](#input\\_maintenance\\_window) | (Optional) A maintenance\\_window block | `any` | `[]` | no |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | (Required) The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. | `string` | n/a | yes |\n| \u003ca name=\"input_pg_version\"\u003e\u003c/a\u003e [pg\\_version](#input\\_pg\\_version) | (Optional) The version of PostgreSQL Flexible Server to use. Possible values are 11,12, 13 and 14. Required when create\\_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created. | `number` | `14` | no |\n| \u003ca name=\"input_point_in_time_restore_time_in_utc\"\u003e\u003c/a\u003e [point\\_in\\_time\\_restore\\_time\\_in\\_utc](#input\\_point\\_in\\_time\\_restore\\_time\\_in\\_utc) | (Optional) The point in time to restore from source\\_server\\_id when create\\_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created. | `string` | `null` | no |\n| \u003ca name=\"input_postgresql_configurations\"\u003e\u003c/a\u003e [postgresql\\_configurations](#input\\_postgresql\\_configurations) | (Optional) Sets a PostgreSQL Configuration value on a Azure PostgreSQL Flexible Server. | `any` | `{}` | no |\n| \u003ca name=\"input_postgresql_fw_rules\"\u003e\u003c/a\u003e [postgresql\\_fw\\_rules](#input\\_postgresql\\_fw\\_rules) | (Optional) PostgreSQL Flexible Server Firewall Rule | `any` | `{}` | no |\n| \u003ca name=\"input_private_dns_zone_id\"\u003e\u003c/a\u003e [private\\_dns\\_zone\\_id](#input\\_private\\_dns\\_zone\\_id) | (Optional) The ID of the private DNS zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. | `string` | `null` | no |\n| \u003ca name=\"input_resource_group_name\"\u003e\u003c/a\u003e [resource\\_group\\_name](#input\\_resource\\_group\\_name) | (Required) The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created. | `string` | n/a | yes |\n| \u003ca name=\"input_server_id\"\u003e\u003c/a\u003e [server\\_id](#input\\_server\\_id) | (Optional)The ID of the Azure PostgreSQL Flexible Server from which to create this PostgreSQL Flexible Server Database. Changing this forces a new Azure PostgreSQL Flexible Server Database to be created. | `string` | `null` | no |\n| \u003ca name=\"input_sku_name\"\u003e\u003c/a\u003e [sku\\_name](#input\\_sku\\_name) | (Optional) The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier + name pattern (e.g. B\\_Standard\\_B1ms, GP\\_Standard\\_D2s\\_v3, MO\\_Standard\\_E4s\\_v3). | `string` | `\"B_Standard_B1ms\"` | no |\n| \u003ca name=\"input_source_server_id\"\u003e\u003c/a\u003e [source\\_server\\_id](#input\\_source\\_server\\_id) | (Optional) The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create\\_mode is PointInTimeRestore or Replica. Changing this forces a new PostgreSQL Flexible Server to be created. | `string` | `null` | no |\n| \u003ca name=\"input_storage_mb\"\u003e\u003c/a\u003e [storage\\_mb](#input\\_storage\\_mb) | (Optional) The max storage allowed for the PostgreSQL Flexible Server. Possible values are 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, and 16777216. | `number` | `131072` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | (Optional) A mapping of tags which should be assigned to the PostgreSQL Flexible Server. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_zone\"\u003e\u003c/a\u003e [zone](#input\\_zone) | (Optional) Specifies the Availability Zone in which the PostgreSQL Flexible Server should be located. | `string` | `null` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_fqdn\"\u003e\u003c/a\u003e [fqdn](#output\\_fqdn) | The FQDN of the PostgreSQL Flexible Server. |\n| \u003ca name=\"output_id\"\u003e\u003c/a\u003e [id](#output\\_id) | The ID of the PostgreSQL Flexible Server. |\n| \u003ca name=\"output_public_network_access_enabled\"\u003e\u003c/a\u003e [public\\_network\\_access\\_enabled](#output\\_public\\_network\\_access\\_enabled) | Is public network access enabled? |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favidhara%2Fterraform-azurerm-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favidhara%2Fterraform-azurerm-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favidhara%2Fterraform-azurerm-postgresql/lists"}