{"id":20901575,"url":"https://github.com/willfarrell/terraform-prime","last_synced_at":"2026-04-22T11:36:29.339Z","repository":{"id":142528798,"uuid":"151282786","full_name":"willfarrell/terraform-prime","owner":"willfarrell","description":"Super lightweight wrapper over terraform to allow `${var.*****}` inside backends.","archived":false,"fork":false,"pushed_at":"2018-10-08T22:18:02.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-29T08:20:33.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/willfarrell.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":"2018-10-02T16:01:20.000Z","updated_at":"2018-10-08T22:18:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0806a82-3177-4d6f-8319-71a07e8a0d0f","html_url":"https://github.com/willfarrell/terraform-prime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willfarrell/terraform-prime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fterraform-prime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fterraform-prime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fterraform-prime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fterraform-prime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfarrell","download_url":"https://codeload.github.com/willfarrell/terraform-prime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fterraform-prime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32134871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"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-18T11:36:05.715Z","updated_at":"2026-04-22T11:36:29.324Z","avatar_url":"https://github.com/willfarrell.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-prime\nSuper lightweight wrapper over terraform to allow `${var.*****}` inside backends. This allows for flatter folder structure in your terraform projects.\n\n- [hashcorp/terraform#13022](https://github.com/hashicorp/terraform/issues/13022)\n- [hashcorp/terraform#17288](https://github.com/hashicorp/terraform/issues/17288)\n\n## Getting Started\n\n### Prerequisites\n- `terraform` must be installed. `$ brew install terraform coreutils`\n\n### Installing\nCopy `terraform-prime` to `/usr/local/bin/` and ensure its executable (`chmod u+x /usr/local/bin/terraform-prime`).\n\nUpdate `bashrc` to include \n```bash\nalias tf=terraform-prime\n```\n\n## Running the test\nRun `tf test production`. Check `terraform` configuration has all variables replaced.\n\n## Running\nTo allow deploying between ... ** TODO\n```bash\nenvironments\n|- app\n|  |- env.production.tfvars\n|  |- env.staging.tfvars\n|  |- terraform.tfvars\n|  |- main.tf\n```\n\nenv.production.tfvars\n```hcl-terraform\nenvironment=production\n```\n\nterraform.tfvars\n```hcl-terraform\nname=appname\nprofile=codename\n```\n\nmain.tf\n```hcl-terraform\nterraform {\n  backend \"s3\" {\n    bucket         = \"terraform-state-${var.name}\"\n    key            = \"${var.environment}/account/terraform.tfstate\"\n    region         = \"us-east-1\"\n    profile        = \"${var.profile}\"\n    dynamodb_table = \"terraform-state-${var.name}\"\n  }\n}\n\n...\n```\n### Running\n```bash\n$ tf init staging\n# tf {action} {environment} [args]\n$ tf plan staging\n# clear current env cache\n$ tf clear\n# clear and init env\n$ tf switch production\n```\n\n## Built With\n- bash\n- [terraform](https://www.terraform.io/)\n\n## Contributing\n\n## Versioning\n\n## Authors\n- [will Farrell](https://github.com/willfarrell)\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE]() file for details\n\n## TODO\n- [ ] Streamline installation (brew?)\n- [ ] recursively check for tfvars in parent dirs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fterraform-prime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfarrell%2Fterraform-prime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fterraform-prime/lists"}