<< All versions
Skill v1.0.1
currentAutomated scan100/100aj-geddes/useful-ai-prompts/terraform-infrastructure
7 files
──Details
PublishedMay 14, 2026 at 09:32 PM
Content Hashsha256:246336fd329050db...
Git SHA3f5182cfd739
Bump Typepatch
──Files
Files (1 file, 2.4 KB)
SKILL.md2.4 KBactive
SKILL.md · 99 lines · 2.4 KB
version: "1.0.1" name: terraform-infrastructure description: > Infrastructure as Code using Terraform with modular components, state management, and multi-cloud deployments. Use for provisioning and managing cloud resources.
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:
hcl
# terraform/main.tfterraform {required_version = ">= 1.0"required_providers {aws = {source = "hashicorp/aws"version = "~> 5.0"}}# Remote state configurationbackend "s3" {bucket = "terraform-state-prod"key = "prod/terraform.tfstate"region = "us-east-1"encrypt = truedynamodb_table = "terraform-locks"}}provider "aws" {region = var.aws_regiondefault_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