terraform-infrastructure▌
aj-geddes/useful-ai-prompts · updated Apr 8, 2026
Build scalable infrastructure as code with Terraform, managing AWS, Azure, GCP, and on-premise resources through declarative configuration, remote state, and automated provisioning.
Terraform Infrastructure
Table of Contents
Overview
Build scalable infrastructure as code with Terraform, managing AWS, Azure, GCP, and on-premise resources through declarative configuration, remote state, and automated provisioning.
When to Use
- Cloud infrastructure provisioning
- Multi-environment management (dev, staging, prod)
- Infrastructure versioning and code review
- Cost tracking and resource optimization
- Disaster recovery and environment replication
- Automated infrastructure testing
- Cross-region deployments
Quick Start
Minimal working example:
# terraform/main.tf
terraform {
required_version = ">= 1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
# Remote state configuration
backend "s3" {
bucket = "terraform-state-prod"
key = "prod/terraform.tfstate"
region = "us-east-1"
encrypt = true
dynamodb_table = "terraform-locks"
}
}
provider "aws" {
region = var.aws_region
default_tags {
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| AWS Infrastructure Module | AWS Infrastructure Module |
| Variables and Outputs | Variables and Outputs |
| Terraform Deployment Script | Terraform Deployment Script |
Best Practices
✅ DO
- Use remote state (S3, Terraform Cloud)
- Implement state locking (DynamoDB)
- Organize code into modules
- Use workspaces for environments
- Apply tags consistently
- Use variables for flexibility
- Implement code review before apply
- Keep sensitive data in separate variable files
❌ DON'T
- Store state files locally in git
- Use hardcoded values
- Mix environments in single state
- Skip terraform plan review
- Use root module for everything
- Store secrets in code
- Disable state locking
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★62 reviews- ★★★★★Advait Gonzalez· Dec 28, 2024
terraform-infrastructure fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Kaira Garcia· Dec 28, 2024
Solid pick for teams standardizing on skills: terraform-infrastructure is focused, and the summary matches what you get after install.
- ★★★★★Li Gonzalez· Dec 16, 2024
terraform-infrastructure has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★William Harris· Dec 8, 2024
Useful defaults in terraform-infrastructure — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Kabir Ramirez· Dec 4, 2024
I recommend terraform-infrastructure for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Anaya Dixit· Dec 4, 2024
Keeps context tight: terraform-infrastructure is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Tariq Abbas· Nov 27, 2024
terraform-infrastructure is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Isabella Khanna· Nov 23, 2024
terraform-infrastructure has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Tariq Park· Nov 19, 2024
We added terraform-infrastructure from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Sakshi Patil· Nov 15, 2024
Solid pick for teams standardizing on skills: terraform-infrastructure is focused, and the summary matches what you get after install.
showing 1-10 of 62