Skip to main content

terrafy

Python License Issues Last Commit Gemini

CLI to generate production-ready Terraform HCL configuration from human language — powered by Gemini.


How It Works

  1. Authenticate — provide your Gemini API key
  2. Create — describe your infrastructure in plain English
  3. Done — terrafy generates a .tf file and saves it locally

Installation

Requirements

Build & Install

python3 -m build
pip3 install .

Rebuild (clean)

rm -rf build/ dist/ src/*.egg-info
python3 -m build
pip3 install .

Usage

Step 1 — Authenticate

terrafy authenticate <GEMINI_API_KEY>

Step 2 — Generate HCL

terrafy create "Create an S3 bucket to hold images. The name starts with the environment then project prefix"

This will:

  • Call Gemini with your request
  • Print the generated HCL to the terminal
  • Save it to a named .tf file (e.g. s3_bucket.tf) in your current directory

View Docs

terrafy docs

Commands

Command Description Example
authenticate Set your Gemini API key terrafy authenticate sk-qwerty
create Generate HCL from a natural language request terrafy create "S3 bucket for images"
docs Show usage instructions terrafy docs

Dependencies

Metadata

Release files for terrafy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terrafy 0.1.0
File Size Uploaded Provenance Actions
terrafy-0.1.0.tar.gz 3.9 kB Without provenance Details for terrafy-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for terrafy 0.1.0
File Interpreter ABI Platform Actions
terrafy-0.1.0-py3-none-any.whl Python 3 none any Details for terrafy-0.1.0-py3-none-any.whl

Total release size: 8.9 kB

Release files / terrafy-0.1.0.tar.gz

Download URL terrafy-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
73c2dc9bf8f194dff29aa27657d3a07cf9657210e786b8c3cc4580308f4a12d8
BLAKE2b-256 checksum
How to use checksums
68038ddca9c1a4017a884c63ce8b189a864a39b53d7e29c11e13bcef133496d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / terrafy-0.1.0-py3-none-any.whl

Download URL terrafy-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5347cc646e4b768dd8f101f90a0df45279cd7af70cea67885778dd03d17402b
BLAKE2b-256 checksum
How to use checksums
4895e7c7574fa7698ce35574f3405f227c8a247802dff111615d27806bc2de4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for terrafy 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page