{"id":49923592,"url":"https://github.com/somethingwithproof/github-to-terraform","last_synced_at":"2026-05-16T22:02:12.311Z","repository":{"id":338412463,"uuid":"811199763","full_name":"somethingwithproof/github-to-terraform","owner":"somethingwithproof","description":"[infrastructure] Github To Terraform - A Shell project","archived":false,"fork":false,"pushed_at":"2026-03-16T02:08:42.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-16T07:34:17.472Z","etag":null,"topics":["shell","terraform"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/somethingwithproof.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2024-06-06T06:17:01.000Z","updated_at":"2026-03-16T02:07:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/somethingwithproof/github-to-terraform","commit_stats":null,"previous_names":["thomasvincent/github-to-terraform","somethingwithproof/github-to-terraform"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/somethingwithproof/github-to-terraform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somethingwithproof%2Fgithub-to-terraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somethingwithproof%2Fgithub-to-terraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somethingwithproof%2Fgithub-to-terraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somethingwithproof%2Fgithub-to-terraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/somethingwithproof","download_url":"https://codeload.github.com/somethingwithproof/github-to-terraform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somethingwithproof%2Fgithub-to-terraform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33120450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"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":["shell","terraform"],"created_at":"2026-05-16T22:02:11.534Z","updated_at":"2026-05-16T22:02:12.300Z","avatar_url":"https://github.com/somethingwithproof.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Import Automation Script\r\n\r\n## Overview\r\n\r\n`terraport.sh` is a shell script designed to automate the process of importing existing GitHub resources into Terraform. This script leverages the GitHub CLI (`gh`) to list repositories and generate the necessary `terraform import` statements for various GitHub resources. It also configures the directory for Terraform Cloud.\r\n\r\n## Prerequisites\r\n\r\nBefore running the script, ensure you have the following:\r\n\r\n1. **GitHub CLI**: Installed and authenticated. You can install it from [GitHub CLI](https://cli.github.com/).\r\n2. **Terraform**: Installed. You can download it from [Terraform](https://www.terraform.io/downloads.html).\r\n3. **Environment Variables**: Set the following environment variables:\r\n   - `GITHUB_USERNAME`: Your GitHub username.\r\n   - `GITHUB_TOKEN`: Your GitHub personal access token.\r\n   - `TFE_TOKEN`: Your Terraform Cloud API token.\r\n   - `TFE_ORG`: Your Terraform Cloud organization name.\r\n\r\n## Installation\r\n\r\n1. Clone this repository\r\n2. Copy `.env.example` to `.env` and configure your credentials\r\n3. Make the script executable: `chmod +x terraport.sh`\r\n\r\n## Usage\r\n\r\nRun the script:\r\n\r\n```bash\r\n./terraport.sh\r\n```\r\n\r\nThe script will:\r\n1. List all repositories in your GitHub account\r\n2. Generate Terraform import statements for each repository\r\n3. Configure Terraform Cloud backend\r\n\r\n## Development\r\n\r\nContributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\r\n\r\n## Security\r\n\r\nSee [SECURITY.md](SECURITY.md) for security policies and reporting procedures.\r\n\r\n## License\r\n\r\nSee [LICENSE.md](LICENSE.md) for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomethingwithproof%2Fgithub-to-terraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomethingwithproof%2Fgithub-to-terraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomethingwithproof%2Fgithub-to-terraform/lists"}