- Home
- Skills
- Ehtbanton
- Claudeskillsrepo
- Terraform Module Builder
terraform-module-builder_skill
- TypeScript
0
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill ehtbanton/claudeskillsrepo --skill terraform-module-builder- SKILL.md15.9 KB
Overview
This skill generates production-ready Terraform module templates and complete .tf file sets for AWS, GCP, and Azure infrastructure. It produces opinionated, best-practice configurations (providers, versions, variables, outputs, locals, data sources) and ready-to-use module layouts for common patterns like ECS Fargate, S3+CloudFront static sites, and reusable network stacks. Use it to jumpstart IaC while preserving Terraform 1.5+ standards and sensible defaults.
How this skill works
When triggered, the skill emits a complete Terraform directory structure with main.tf, variables.tf, outputs.tf, providers.tf, versions.tf, locals.tf, data.tf and example terraform.tfvars. It scaffolds modules and resources with clear naming, tags, validations, and backend configuration. Templates include autoscaling, logging, IAM roles, security groups, and optional production protections like deletion protection and state locking.
When to use it
- Bootstrapping infrastructure for a new project across AWS, GCP, or Azure
- Creating reusable Terraform modules for teams or CI/CD pipelines
- Generating secure defaults (state backend, version constraints, tags, IAM roles)
- Scaffolding common workloads such as ECS Fargate, static sites with S3+CloudFront, or VPC modules
- Rapid prototyping of environments with variables and sensible defaults
Best practices
- Keep modules focused and composable—one responsibility per module (network, compute, storage)
- Use remote state backend and state locking for team collaboration
- Define input validation and sensible defaults in variables.tf to prevent misconfiguration
- Tag all resources and expose critical outputs to simplify automation and downstream modules
- Use lifecycle ignore_changes and deployment circuit breaker for safe rolling updates
Example use cases
- Generate an AWS ECS Fargate module with VPC, ALB, IAM, autoscaling, and logging ready to plug into CI
- Create an S3 + CloudFront static website stack with Origin Access Control, SPA error handling, and versioning enabled
- Scaffold a multi-environment module set (dev/staging/prod) with environment validation and production protections
- Produce provider and version-managed templates for GCP or Azure resources following same module layout and output patterns
FAQ
Yes. It generates fully-formed .tf files you can review, customize, and run terraform init/plan/apply with Terraform 1.5+ and the indicated provider versions.
Can I customize naming, tags, and defaults?
Absolutely. Templates expose variables for project_name, environment, region, resource sizes, and tags so you can adapt names and defaults before applying.
Does it include remote state and locking?
Templates include backend examples (S3 + DynamoDB for AWS) and recommend remote state and locking; adjust backend settings to match your tooling and accounts.