{"id":21638349,"url":"https://github.com/julie-ng/cloudkube-shared-infra","last_synced_at":"2025-04-11T16:42:36.428Z","repository":{"id":148837299,"uuid":"347709702","full_name":"julie-ng/cloudkube-shared-infra","owner":"julie-ng","description":"Shared Infra for cloudkube.io projects. And example of how to leverage InnerSource example for shared configuration management.","archived":false,"fork":false,"pushed_at":"2024-05-25T11:56:45.000Z","size":282,"stargazers_count":10,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T12:51:22.640Z","etag":null,"topics":["azure","infra-as-code","infrastructure","inner-source","management","terraform"],"latest_commit_sha":null,"homepage":"","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/julie-ng.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}},"created_at":"2021-03-14T17:46:55.000Z","updated_at":"2024-07-19T23:46:16.000Z","dependencies_parsed_at":"2024-05-11T21:27:10.133Z","dependency_job_id":null,"html_url":"https://github.com/julie-ng/cloudkube-shared-infra","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/julie-ng%2Fcloudkube-shared-infra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julie-ng%2Fcloudkube-shared-infra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julie-ng%2Fcloudkube-shared-infra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julie-ng%2Fcloudkube-shared-infra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julie-ng","download_url":"https://codeload.github.com/julie-ng/cloudkube-shared-infra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442330,"owners_count":21104161,"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","infra-as-code","infrastructure","inner-source","management","terraform"],"created_at":"2024-11-25T04:09:14.286Z","updated_at":"2025-04-11T16:42:36.406Z","avatar_url":"https://github.com/julie-ng.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudkube.io - Shared Infrastructure\n\n[Terraform](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs) Infrastructure as Code (IaC) I use to deploy and manage shared resources for cloudkube.io.\n\n**Azure Resrouces**\n\n- 1 Container registry\n- 1 DNS Zone\n- 1 Storage Account\n- 3 Key Vaults\n- Imports TLS certs into Key Vaults\n\n**GitHub Deployment integration**\n- 2 Service Principals (SP)\n- 2 federated credentials for the above SPs for GitHub Workflows\n- 2 Role assignments to Container Registry to push from GitHub\n\n## How to use\n\n**Notes to self**\n\nFirst check config\n\n- State file auth: nothing to configure. Uses Azure AD auth.\n- Infra: adjust [`terraform.tfvars`](./terraform.tfvars) and `*.auto.tfvars` as needed\n\nThen just run commands\n\n```bash\nmake init\nmake plan\nmake apply\n```\n\nor\n\n```bash\nterraform init -backend-config=backends/azure.conf.hcl \nterraform plan -out plan.tfplan\nterraform apply plan.tfplan\n```\n\n## Is this Inner Source?\n\nNo, because it's just me. This repo does, however, illustrate the concepts of using self-service infra via pull requests on infrastructure as code (IaC).\n\n\u003cimg src=\"./images/shared-rg-v2.svg\" alt=\"Diagram: shared resources (not accurate)\"\u003e\n\n_**Diagram: shared resources including created and managed by Terraform**_\n\nNote that Role Assignments are managed here because I view them as owned by the Key Vault owner. But the managed identities belong to the AKS clusters and thus in a different Terraform project.\n\n### Disclaimer\n\nThis repository open source and my opinionated workflow for my use-case. Before you clone it and try it out yourself, please remember it is…\n\n- *not* an official Microsoft recommendation\n- *not* a reference architecture\n- *not* a reference implementation\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulie-ng%2Fcloudkube-shared-infra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulie-ng%2Fcloudkube-shared-infra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulie-ng%2Fcloudkube-shared-infra/lists"}