{"id":13505856,"url":"https://github.com/miltlima/terramagic","last_synced_at":"2025-10-29T02:31:00.611Z","repository":{"id":46200746,"uuid":"292871179","full_name":"miltlima/terramagic","owner":"miltlima","description":"🐍 - Wizard tool for create folders and terraform files automated, written in Python ! ","archived":false,"fork":false,"pushed_at":"2023-09-06T00:35:58.000Z","size":104,"stargazers_count":44,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T13:18:02.772Z","etag":null,"topics":["cli","patterns","python","terraform"],"latest_commit_sha":null,"homepage":"","language":"Python","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/miltlima.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}},"created_at":"2020-09-04T14:39:31.000Z","updated_at":"2024-02-10T18:50:40.000Z","dependencies_parsed_at":"2024-01-03T02:29:18.368Z","dependency_job_id":"4f68dcf8-094d-4309-a1db-474507362f3b","html_url":"https://github.com/miltlima/terramagic","commit_stats":{"total_commits":98,"total_committers":2,"mean_commits":49.0,"dds":"0.010204081632653073","last_synced_commit":"375d2f2401ea30bcef6889732af9282c12613df7"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltlima%2Fterramagic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltlima%2Fterramagic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltlima%2Fterramagic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miltlima%2Fterramagic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miltlima","download_url":"https://codeload.github.com/miltlima/terramagic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238759696,"owners_count":19525873,"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","patterns","python","terraform"],"created_at":"2024-08-01T00:01:15.533Z","updated_at":"2025-10-29T02:31:00.258Z","avatar_url":"https://github.com/miltlima.png","language":"Python","funding_links":["https://www.buymeacoffee.com/miltlima"],"categories":["Tools","Python"],"sub_categories":["Community providers"],"readme":"[![\"Buy Me A Coffee\"](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black)](https://www.buymeacoffee.com/miltlima)\n\n# Terramagic CLI\n\nTerramagic is a command-line interface tool that makes it easy to create and manage Terraform projects.\n\n## Motivation\n\nCreating a new Terraform project from scratch can be time-consuming and error-prone. With Terramagic, you can quickly generate a template for your project and customize it to your needs.\n\n### Requirements\n\nPython 3.9 or higher\n\n### Installation\n\nYou can easily install Terramagic using pip:\n\n```shell\npip3 install terramagic\n```\n\n### Usage\n\n#### Creating a new project\n\nTo create a new Terraform project, use the create command:\n\n```shell\nterramagic create --name \u003cproject_name\u003e \n```\n\nFor example, to create a project called \"infra\" automatically 3 environments are created (\"development\", \"staging\" and \"production\") and respective tfvars, run:\n\n```shell\nterramagic create --name infra\n```\n\nThis will generate a new directory called \"infra\" with the following structure:\n\n```code\ninfra\n├── backend.tf\n├── environments\n│   ├── development\n│   │   └── development.tfvars\n│   ├── production\n│   │   └── production.tfvars\n│   └── staging\n│       └── staging.tfvars\n├── main.tf\n├── main.tfvars\n├── modules\n│   ├── cluster\n│   │   ├── main.tf\n│   │   ├── outputs.tf\n│   │   └── variables.tf\n│   ├── instance\n│   │   ├── main.tf\n│   │   ├── outputs.tf\n│   │   └── variables.tf\n│   └── vpc\n│       ├── main.tf\n│       ├── outputs.tf\n│       └── variables.tf\n├── outputs.tf\n├── providers\n│   └── provider.tf\n└── variables.tf\n```\n\nYou can then edit these files to define your infrastructure resources and variables.\n\n#### Deleting a project\n\nTo delete an existing project, use the delete command and specify the project name:\n\n```shell\nterramagic delete --name \u003cproject_name\u003e\n```\n\nFor example, to delete the \"myapp\" project, run:\n\n```shell\nterramagic delete --name infra\n```\n\nHelp\nFor detailed information about available commands and options, run:\n\n```shell\nterramagic --help\n```\n\nThis will display the following message:\n\n```shell\nUsage: terramagic [OPTIONS] COMMAND [ARGS]...\n\n  ClI tool to create Terraform project\n\nOptions:\n  -v, --version  Show version\n  --help         Show this message and exit.\n\nCommands:\n  create  Create a new Terraform project with specified name and environment\n  remove  Delete the project\n```\n\nEnjoy using Terramagic to simplify your Terraform workflow!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiltlima%2Fterramagic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiltlima%2Fterramagic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiltlima%2Fterramagic/lists"}