CLI tool to initialize Terraform projects with standard files
Project description
Terraform Initializer
A simple CLI tool to bootstrap Terraform projects with opinionated, standard files and provider configurations for AWS, GCP, Azure, or local backends.
Features
- Generates
provider.tfbased on selected backend - Creates standard Terraform files:
main.tfvariables.tflocals.tfoutputs.tf
- Prevents overwriting existing files
- Easy to install via PyPI
Installation
pip install terraform-initializer
Usage
Initialize a new Terraform project in the current directory (defaults to your CWD):
terraform-init aws
Or specify a target directory:
terraform-init gcp ./my-terraform-project
Supported backends:
awsgcpazurelocal
After running, you’ll have:
provider.tf # with backend-specific provider block
main.tf # starter module/file
variables.tf # placeholder for input variables
locals.tf # placeholder for local values
outputs.tf # placeholder for outputs
Examples
# Bootstrap an Azure Terraform project
terraform-init azure ./infra/azure
# Bootstrap local backend for CI testing
terraform-init local ./ci/terraform
Templates
Provider templates live under terraform_initializer/templates/<backend>/provider.tf. Feel free to customize them for your organization’s standards.
Contributing
Contributions, issues and feature requests are welcome! Feel free to check issues page.
License
MIT © Aman Walekar
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terraform_initializer-0.1.0.tar.gz.
File metadata
- Download URL: terraform_initializer-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cf4351beae5895c32e7f2e0f4c21d44ac749e8be689e2d28f8035f64aa45ef1
|
|
| MD5 |
c8ebf97e795e3d881a5e5bc32898f483
|
|
| BLAKE2b-256 |
9fa2a0521a1a0570fa2511dfe4109598c4d343ecc3a1b222b25ce1190221cf78
|
File details
Details for the file terraform_initializer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: terraform_initializer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fd74216b01a6a269c1c5aa7342930a3681842e59eb1448aff78b7aa7751d24b
|
|
| MD5 |
43310b2db04a4caab1f13fce2d35448e
|
|
| BLAKE2b-256 |
1e07d87b6b566f56055545fde491a7c960f26267453bf70e767910315337c5da
|