{"id":24452654,"url":"https://github.com/tmslpm/terra-gh","last_synced_at":"2026-02-06T07:35:36.006Z","repository":{"id":272300324,"uuid":"916052135","full_name":"tmslpm/terra-gh","owner":"tmslpm","description":"Repository managed by Terraform!","archived":false,"fork":false,"pushed_at":"2025-01-18T22:19:22.000Z","size":320,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T21:33:03.549Z","etag":null,"topics":["cli","github","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/tmslpm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"license.md","code_of_conduct":".github/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-13T11:13:00.000Z","updated_at":"2025-01-18T22:19:24.000Z","dependencies_parsed_at":"2025-01-13T15:37:25.069Z","dependency_job_id":"a6d0ed49-a8b0-4af4-bba1-93f22ac354f4","html_url":"https://github.com/tmslpm/terra-gh","commit_stats":null,"previous_names":["tmslpm/terra-gh"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmslpm%2Fterra-gh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmslpm%2Fterra-gh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmslpm%2Fterra-gh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmslpm%2Fterra-gh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmslpm","download_url":"https://codeload.github.com/tmslpm/terra-gh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252134097,"owners_count":21699654,"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":["cli","github","terraform"],"created_at":"2025-01-21T01:16:28.834Z","updated_at":"2026-02-06T07:35:30.981Z","avatar_url":"https://github.com/tmslpm.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  Terraform + Github\n\u003c/p\u003e\n\n## Note\n\n![excal note](./.github/.excal/setup.excalidraw.png)\n\n### Setup\n```sh\n# define env var BUCKET_ACCESS\n# define env var BUCKET_SECRET\n# define env var GITHUB_TOKEN\n\n# go to terra folder\ncd ./.terraform\n\n# create terraform.tfbackend\ncp \"./templates/terraform.tfbackend.template\" \"./terraform.tfbackend\"\n\n# init\nterraform init --backend-config=\"./terraform.tfbackend\" \\ \n  -backend-config=\"access_key=$BUCKET_ACCESS\" \\ \n  -backend-config=\"secret_key=$BUCKET_SECRET\"\n```\n\n### Then\n```sh\nterraform plan -var=\"github_token=$GITHUB_TOKEN\"\nterraform apply -var=\"github_token=$GITHUB_TOKEN\"\n```\n\n## Import Existing Resources\n```sh \nterraform import github_repository.$github_name $repo_name\n# example\nterraform import github_repository.tmslpm terra-gh\n```\n\u003e https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository#import\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmslpm%2Fterra-gh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmslpm%2Fterra-gh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmslpm%2Fterra-gh/lists"}