{"id":18760554,"url":"https://github.com/evrone/terraform-yandex-postgres","last_synced_at":"2025-12-03T15:30:15.723Z","repository":{"id":60001806,"uuid":"493692236","full_name":"evrone/terraform-yandex-postgres","owner":"evrone","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-23T09:51:12.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":10,"default_branch":"feature/psql-implementation","last_synced_at":"2025-02-13T09:57:22.167Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evrone.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}},"created_at":"2022-05-18T14:12:45.000Z","updated_at":"2024-05-03T08:38:25.000Z","dependencies_parsed_at":"2022-09-25T14:11:45.077Z","dependency_job_id":null,"html_url":"https://github.com/evrone/terraform-yandex-postgres","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fterraform-yandex-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fterraform-yandex-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fterraform-yandex-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fterraform-yandex-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evrone","download_url":"https://codeload.github.com/evrone/terraform-yandex-postgres/tar.gz/refs/heads/feature/psql-implementation","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239652990,"owners_count":19675009,"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":"2024-11-07T18:13:08.731Z","updated_at":"2025-12-03T15:30:15.668Z","avatar_url":"https://github.com/evrone.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yandex cloud Managed PostgreSQL terraform module\n\n# Usage\n\nThis module creates databases and users with nessecary permissions. Some important things before usage:\n1. configure maintenance_window\n2. specify the encoding - after creation DB there is no possibility to change it \n3. specify resource PostgreSQL cluster: instance type by cpu, type and size of disk\n4. for create HA instance specify multiple \"hosts\" block\n5. read the full doc of yandex: https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/mdb_postgresql_cluster\n\n```\nmodule \"mdb_postgresql\" {\n  source = \"../\"\n\n  cluster_name = \"example_cluster\"\n  network_id   = yandex_vpc_network.foo.id\n  environment  = \"PRESTABLE\"\n\n  maintenance_window = {\n    type = \"WEEKLY\"\n    day  = \"SAT\"\n    hour = 12\n  }\n\n  config = [{\n    version                   = 14\n    backup_retain_period_days = 7\n    postgresql_config = {\n      max_connections                   = 395\n    }\n    backup_window_start = {\n      hour   = 3\n      minute = 0\n    }\n    performance_diagnostics = {\n      enabled                      = false\n      sessions_sampling_interval   = 60\n      statements_sampling_interval = 600\n    }\n    resources = {\n      resource_preset_id = \"b1.nano\"\n      disk_type_id       = \"network-hdd\"\n      disk_size          = 10\n    }\n  }]\n\n  databases = {\n    test_db = {\n      owner      = \"test_user\"\n      lc_collate = \"en_US.UTF-8\"\n      lc_type    = \"en_US.UTF-8\"\n    },\n    test2_db = {\n      owner      = \"test2_user\"\n      lc_collate = \"en_US.UTF-8\"\n      lc_type    = \"en_US.UTF-8\"\n    }\n  }\n\n  users = {\n    test_user = {\n      password   = \"test_user@!!#\"\n      conn_limit = 20\n      permissions = [\n        {\n          database_name = \"test_db\"\n        }\n      ]\n    },\n    test2_user = {\n      password   = \"test2_user@!!#\"\n      conn_limit = 20\n      permissions = [\n        {\n          database_name = \"test2_db\"\n        }\n      ]\n    }\n  }\n\n  hosts = {\n    host1 = {\n      name      = \"host1\"\n      zone      = var.zone\n      subnet_id = yandex_vpc_subnet.foo.id\n    }\n  }\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevrone%2Fterraform-yandex-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevrone%2Fterraform-yandex-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevrone%2Fterraform-yandex-postgres/lists"}