{"id":30743468,"url":"https://github.com/ukho/tfmodule-postgres","last_synced_at":"2026-02-12T13:17:53.304Z","repository":{"id":304665884,"uuid":"1016783539","full_name":"UKHO/tfmodule-postgres","owner":"UKHO","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-31T13:03:52.000Z","size":22,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T13:58:54.110Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UKHO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-07-09T14:14:24.000Z","updated_at":"2025-07-14T13:16:00.000Z","dependencies_parsed_at":"2025-08-02T01:45:16.922Z","dependency_job_id":null,"html_url":"https://github.com/UKHO/tfmodule-postgres","commit_stats":null,"previous_names":["ukho/tfmodule-postgres"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UKHO/tfmodule-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UKHO","download_url":"https://codeload.github.com/UKHO/tfmodule-postgres/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-postgres/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273539317,"owners_count":25123499,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-04T02:07:28.504Z","updated_at":"2026-02-12T13:17:53.277Z","avatar_url":"https://github.com/UKHO.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Module: for AKS Clusters\n\n##\n\n## Required Resources\n\n- `Resource Group` exists or is created external to the module.\n- `Provider` must be created external to the module.\n\n## Usage\n\n```terraform\n# Azure Key Vault and Azure App Config\n\n## Usage Vars\n\nvariable \"resource_group_name\" {\n  description = \"Name of the resource group\"\n  type        = string\n}\n\nvariable \"location\" {\n  description = \"Azure region\"\n  type        = string\n}\n\nvariable \"tenant_id\" {\n  description = \"Azure Tenant ID\"\n  type        = string\n}\n\nvariable \"subscription_id\" {\n  description = \"Azure Subscription ID\"\n  type        = string\n}\n\nvariable \"principal_id\" {\n  description = \"The object id of the terraform principal (Optional). If not supplied then data.azurerm_client_config.current.object_id will be used\"\n  type        = string\n}\n\nvariable \"postgres_name\" { \n  type = string\n}\n\nvariable \"short_name\" { \n  type = string\n}\n\nvariable \"postgres_sku\" { \n  type = string\n}\n\nvariable \"postgres_version\" { \n  type = string\n}\n\nvariable \"postgres_storage_mb\" {\n  type        = string\n  description = \"Database server storage size\"\n}\n\nvariable \"postgres_admin_user\" {\n  type        = string\n  description = \"Database server admin user name\"\n}\n\nvariable \"postgres_storage_tier\" {\n  type        = string\n  description = \"Database server Storage Tier\"\n}\n\nvariable \"vnet_id\" { \n  type = string\n}\n\nvariable \"backup_retention_days\" {\n  type        = number\n  description = \"Backup retention period in days\"\n  default     = 30\n}\n\nvariable \"auto_grow_enabled\" {\n  type        = bool\n  description = \"Enable auto-grow\"\n  default     = false\n}\n\nvariable \"geo_redundant_backup_enabled\" {\n  type        = bool\n  description = \"Enable Geo-redundant Backup\"\n  default     = false\n}\n\nvariable \"public_network_access_enabled\" {\n  type        = bool\n  description = \"Enable Public Network Access\"\n  default     = false\n}\n\n\nvariable \"databases\" {\n  type = list(object({\n    name      = string\n    charset   = optional(string, \"UTF8\")\n    collation = optional(string, \"en_GB.utf8\")\n  }))\n}\n\nvariable \"tags\" {\n  description = \"Tags for the resources\"\n  type        = map(string)\n}\n\nvariable \"ip_rules\" {\n  description = \"List of IP addresses that are allowed to access the AKS Cluster\"\n  type        = list(string)\n}\n\nExample usage: \n\nlocals {\n  databases = [{\n    name      = \"example\"\n  }]\n}\n\nmodule \"postgres\" {\n  source                        = \"github.com/UKHO/tfmodule-postgres?ref=229597-postgres\"\n  resource_group_name           = azurerm_resource_group.this.name\n  location                      = var.location_primary\n  postgres_name                = \"${local.resource_prefix}-postgres\"\n  short_name                    = local.resource_prefix_short\n  tenant_id                     = var.tenant_id\n  subscription_id               = var.subscription_id\n  principal_id                  = data.azuread_service_principal.terraform.object_id\n  postgres_sku                  = var.postgres_sku\n  postgres_version              = var.postgres_version\n  postgres_storage_mb           = var.postgres_storage_mb\n  postgres_storage_tier         = var.postgres_storage_tier\n  postgres_admin_user           = var.postgres_admin_user\n  vnet_id                       = data.azurerm_virtual_network.spoke.id\n  auto_grow_enabled             = true\n  backup_retention_days         = 35\n  geo_redundant_backup_enabled  = true\n  public_network_access_enabled = true\n  ip_rules                      = local.ip_rules\n  tags                          = var.tags\n  databases                     = local.databases\n}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukho%2Ftfmodule-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fukho%2Ftfmodule-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukho%2Ftfmodule-postgres/lists"}