v0.1.4
v0.1.4 — Infrastructure Blueprints 🏗️
This release introduces the most significant feature addition since launch — Infrastructure Blueprints, a guided wizard that generates complete, production-ready Terraform configurations with multiple interconnected resources in a single file.
What's New
🏗️ Infrastructure Blueprints
The ➕ Add Resource button now offers two modes:
- Build from Blueprint — generate a complete multi-resource infrastructure stack
- Single Resource — existing flow to add one resource from the 334-resource AWS catalog
8 built-in blueprints available:
| Blueprint | Resources Generated |
|---|---|
| 🌐 Public Web Server | VPC, public subnet, IGW, route table, security group (HTTP/SSH), EC2 |
| 🔒 Public + Private with NAT | VPC, public + private subnets, IGW, EIP, NAT Gateway, bastion EC2, private app EC2 |
| ⚖️ Load Balanced Web Application | VPC, 4 subnets, NAT, ALB, target group, launch template, Auto Scaling Group |
| 🏛️ Three-Tier Architecture | VPC, 6 subnets (public/app/db), NAT, ALB, 2× EC2 app servers, RDS multi-AZ |
| ☁️ Static Website Hosting | S3, CloudFront, OAI, ACM certificate, Route53 zone + A/CNAME records |
| ⚡ Serverless API | IAM role, Lambda, API Gateway v2, DynamoDB, S3 assets bucket |
| ☸️ EKS Kubernetes Cluster | VPC, 4 subnets with K8s tags, NAT, cluster + node IAM roles, EKS cluster, managed node group |
| 🔑 Lambda + IAM Role | IAM execution role, basic policy attachment, Lambda function |
Every blueprint generates fully connected HCL — all resources reference each other using Terraform expressions (aws_vpc.main.id, aws_subnet.main_public.id) with no hardcoded IDs.
3-step wizard flow:
- Pick a blueprint
- Fill in configuration fields (pre-filled with sensible defaults)
- Preview the generated HCL, edit the filename, then choose Write File or Write & Apply
Code Refactor
This release also ships the modular refactor of the codebase:
state.py— app config, sample state,load_state(),format_value()catalog.py— AWS resource catalog (334 resources), HCL templates, provider listblueprints.py— all 8 blueprint definitions and HCL renderercli.py— UI only, imports from the three modules above
Installation
# pip pip install TerraLens==0.1.4pipx
pipx install TerraLens
Binary — Linux
curl -L https://github.com/bhuvan-raj/TerraLens/releases/download/v0.1.4/insight-tf-linux -o terralens
chmod +x terralens
./terralens
Upgrade from v0.1.3
pip install --upgrade TerraLensor
pipx upgrade TerraLens