{"id":20340911,"url":"https://github.com/leancodepl/terraform-common-modules","last_synced_at":"2026-03-19T15:23:27.396Z","repository":{"id":212511858,"uuid":"652634848","full_name":"leancodepl/terraform-common-modules","owner":"leancodepl","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-23T18:56:25.000Z","size":138,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-24T01:36:44.358Z","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/leancodepl.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-12T13:31:10.000Z","updated_at":"2025-12-17T13:34:35.000Z","dependencies_parsed_at":"2023-12-14T16:55:37.524Z","dependency_job_id":"b21fce7a-3e1c-426f-9d30-782ac5c7cf6c","html_url":"https://github.com/leancodepl/terraform-common-modules","commit_stats":null,"previous_names":["leancodepl/terraform-common-modules"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/leancodepl/terraform-common-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fterraform-common-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fterraform-common-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fterraform-common-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fterraform-common-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancodepl","download_url":"https://codeload.github.com/leancodepl/terraform-common-modules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fterraform-common-modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30283905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-14T21:24:37.592Z","updated_at":"2026-03-09T05:32:04.482Z","avatar_url":"https://github.com/leancodepl.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform common modules\n\n- [app_config](./app_config/readme.md)\n- [argocd_app](,/argocd_app)\n- [azure_blob_storage](./azure_blob_storage/readme.md)\n- [azure_blob_storage_assets](./azure_blob_storage_assets/readme.md)\n- [azure_service_bus](./azure_service_bus/readme.md)\n- [firebase](./firebase/readme.md)\n- [key_vault](./key_vault/readme.md)\n- [managed_identity](./managed_identity/readme.md)\n- [mssql_database_user](./mssql_database_user/)\n- [mssql_server](./mssql_server/)\n- [posgresql](/postgresql/readme.md)\n- [tags](./tags/readme.md)\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n\n\u003c!-- END_TF_DOCS --\u003e\n\n## Warnings\n\n#### Creating resource groups and using Azure modules in the same project\n\nAzure modules (`azure_blob_storage`, `azure_service_bus`, `key_vault`) read resource group as a data source. Because `azurerm_resource_group.name` is known _before_ apply, data sources will fail if the resource group is not yet created. You need to partially apply the resource group or pass it as `depends_on`. See the [example](example/service_bus.tf).\n\n#### Using `mssql_server` and `mssql_database_user` modules in the same project\n\nMSSQL provider requires the database to be create _before_ plan. You have to use partial apply to create the database first.\n\n#### Creating AD users in `postgresql` module\n\nTerraform cannot create an AD user for Postgres. Instead it generates a script to be applied on the database. More details in the [module readme](postgresql/readme.md).\n\n## Modules relationships\n\nA birds eye view of what is managed by a module and how they would typically interact with each other. For brevity, it ignores the fact that eventually all the modules have outputs that will be stored in `app_config` (connection strings, access keys, etc).\n\n```mermaid\nflowchart BT\n    subgraph managed_identity\n    direction LR\n    managed_identity_identity[Azure Managed Identity]\n    managed_identity_workload_identity[AKS Workload Identity]\n    end\n\n    subgraph mssql_server\n    direction LR\n    mssql_server_server[MSSQL Server]\n    mssql_server_database[MSSQL Databases]\n    mssql_server_firewall[Firewall configuration]\n    mssql_server_admin[MSSQL AD Admin]\n    end\n\n    subgraph mssql_database_user\n    direction LR\n    mssql_database_user_user[MSSQL User]\n    mssql_database_user_role[MSSQL User Roles]\n    end\n\n    subgraph app_config\n    direction LR\n    key_vault_secrets[Key Vault Secrets]\n    access_policy[Key Vault access policy for application]\n    configmaps[Kubernetes Config Maps]\n    secrets[Kubernetes Secrets]\n    end\n\n    subgraph key_vault\n    direction LR\n    key_vault_vault[Azure Key Vault]\n    key_vault_deploy_policy[Key Vault access policy for management]\n    end\n\n    subgraph azure_service_bus\n    direction LR\n    azure_service_bus_namespace[Azure Service Bus]\n    azure_service_bus_access[Access role for application]\n    end\n\n    subgraph azure_blob_storage\n    direction LR\n    azure_blob_storage_account[Azure Storage Account]\n    azure_blob_storage_container[Blob Storage Containers]\n    azure_blob_storage_access[Access role for application]\n    end\n\n    subgraph azure_blob_storage_assets\n    storage_assets[Files uploaded to Blob Storage]\n    end\n\n    subgraph postgresql\n    direction LR\n    postgresql_server[Postgres Flexible Server]\n    postgresql_database[Postgres Databases]\n    postgresql_roles[Postgres Roles]\n    postgresql_admin[Postgres AD Admin]\n    postgresql_firewall[Firewall configuration]\n    end\n\n    subgraph firebase\n    firebase_app[Firebase]\n    end\n\n    subgraph argocd\n    argocd_config[ArgoCD apps setup]\n    end\n\n    mssql_database_user --\u003e managed_identity\n    app_config --\u003e managed_identity\n    mssql_database_user --\u003e mssql_server\n    app_config --\u003e key_vault\n\n    azure_blob_storage --\u003e managed_identity\n    azure_blob_storage_assets --\u003e azure_blob_storage\n    azure_service_bus --\u003e managed_identity\n    postgresql --\u003e managed_identity\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Fterraform-common-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancodepl%2Fterraform-common-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Fterraform-common-modules/lists"}