{"id":22744533,"url":"https://github.com/goseind/tf-flux","last_synced_at":"2025-03-30T05:10:31.820Z","repository":{"id":205659469,"uuid":"616932216","full_name":"goseind/tf-flux","owner":"goseind","description":"Using Terraform to Maintain Flux","archived":false,"fork":false,"pushed_at":"2023-03-21T15:57:52.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T07:14:28.094Z","etag":null,"topics":["cicd","flux","gitops","terraform"],"latest_commit_sha":null,"homepage":"https://gosein.de/terraform-maintain-flux.html","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/goseind.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}},"created_at":"2023-03-21T11:30:07.000Z","updated_at":"2023-11-05T18:28:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"32aefcaa-115e-4c19-91a7-870eb44e74fe","html_url":"https://github.com/goseind/tf-flux","commit_stats":null,"previous_names":["goseind/tf-flux"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goseind%2Ftf-flux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goseind%2Ftf-flux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goseind%2Ftf-flux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goseind%2Ftf-flux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goseind","download_url":"https://codeload.github.com/goseind/tf-flux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277373,"owners_count":20751549,"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":["cicd","flux","gitops","terraform"],"created_at":"2024-12-11T01:46:51.110Z","updated_at":"2025-03-30T05:10:31.802Z","avatar_url":"https://github.com/goseind.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using Terraform to Maintain Flux\n\nThis repo showcases the usage of the [terraform fluxcd provider](https://registry.terraform.io/providers/fluxcd/flux/latest). **Please see my [blog post](https://gosein.de/terraform-maintain-flux.html) for more details.**\n\nYou can use this repo as a template to get started, what you'll need is a K8s cluster (with the `config` saved in the default `.kube` directory), a GitHub repo, and a token with repo access.\n\n## TL;TR\n\nReplace the variable values in the `terraform apply` command below, then copy and paste this into your terminal:\n\n```bash\ngit clone https://github.com/goseind/tf-flux\ncd tf\nterraform init\nterraform apply -var github_org=\"\u003cyour-orga-or-username\u003e\" -var github_repository=\"\u003cyour-repo-name\u003e\" -var github_token=\"\u003cyour-token\u003e\"\nmkdir ../flux/cluster\ncp ../test/test-manifest.yaml ../flux/cluster/test-manifest.yaml\ngit add test-manifest.yaml\ngit commit -m 'apply test manifest to cluster'\ngit push\n```\n\nAfter this, all new files in `flux/cluster` will be synced with Flux, while the Flux installation itself is maintained by Terraform.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoseind%2Ftf-flux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoseind%2Ftf-flux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoseind%2Ftf-flux/lists"}