aj-geddes avatar

Terraform Infrastructure

A solid foundation for managing cloud infrastructure with Terraform that covers the essentials: remote state with S3 and DynamoDB locking, multi-cloud provider setup, and modular architecture. The reference guides walk through AWS infrastructure modules, variable management, and deployment scripts. This is most useful if you're setting up Terraform for the first time or standardizing how your team handles infrastructure as code across environments. The best practices section is actually helpful, emphasizing state management and module organization over superficial advice. It won't teach you Terraform from scratch, but it gives you a reasonable starting structure and keeps you from common mistakes like local state files or hardcoded values.

skills.sh installs
1.2K
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill terraform-infrastructure --agent claude-code

Installs into .claude/skills of the current project.

Files

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"
  }
}

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
DevOps & CI/CD, AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1cxuu avatargo-loggingcxuu/golang-skillsUse when choosing a logging approach, configuring slog, writing structured log statements, or deciding log levels in Go. Also use when setting up production log1.1Kskills.sh installs
2pulumi avatarpulumi-terraform-to-pulumipulumi/agent-skillsMigrate Terraform/OpenTofu projects to Pulumi, including translating HCL source code and/or importing Terraform state into a Pulumi stack. Use when a user wants974skills.sh installs
3rpamis avatarcomet-buildrpamis/comet仅在用户明确调用 /comet-build,或由 Comet 根 Skill/runtime 路由到 full workflow 的 build 阶段时使用;创建或恢复实施计划并执行任务。884skills.sh installs
4sickn33 avatarkubernetes-architectsickn33/antigravity-awesome-skillskubernetes architect858skills.sh installs
5mindrally avatarlogging-best-practicesmindrally/skillsLogging best practices for applications and services including structured logging, log levels, and log management strategies819skills.sh installs
6signerlabs avatarbuild-featuresignerlabs/shipswift-skillsBuild an iOS feature using ShipSwift component recipes. Use when the user says "build", "create", "add a feature", or describes an iOS feature they want to impl784skills.sh installs