A automate tool for terraform projects
Project description
Terramagic CLI
Terramagic is a command-line interface tool that makes it easy to create and manage Terraform projects.
Motivation
Creating 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.
Requirements
Python 3.9 or higher
Installation
You can easily install Terramagic using pip:
pip3 install terramagic
Usage
Creating a new project
To create a new Terraform project, use the create command:
terramagic create --name <project_name> --env <environment_name>
For example, to create a project called "myapp" with two environments ("dev" and "prod"), run:
terramagic create --name myapp --env dev --env prod
This will generate a new directory called "myapp" with the following structure:
myapp/
├── dev.tfvars
├── main.tf
├── outputs.tf
├── prod.tfvars
└── variables.tf
You can then edit these files to define your infrastructure resources and variables.
Deleting a project
To delete an existing project, use the delete command and specify the project name:
terramagic delete --name <project_name>
For example, to delete the "myapp" project, run:
terramagic delete --name myapp
Help For detailed information about available commands and options, run:
terramagic --help
This will display the following message:
Usage: terramagic [OPTIONS] COMMAND [ARGS]...
ClI tool to create Terraform project
Options:
-v, --version Show version
--help Show this message and exit.
Commands:
create Create a new Terraform project with specified name and environment
remove Delete the project
Enjoy using Terramagic to simplify your Terraform workflow!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for terramagic-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9107a920cfa0905ed5e79953bae0e62347ed1f6742f92ce6d962d5461893215 |
|
MD5 | 580daf992175d16302598caa6d0b2f7a |
|
BLAKE2b-256 | 3659ac637475abc7b746676bc83c3ac2b82192d542039114b85382a170c46cad |