Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Terraform Infrastructure

  • 559 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

terraform-infrastructure is a Claude Code skill that provisions and manages cloud infrastructure declaratively with modular Terraform across AWS, Azure, and GCP for developers who need versioned Infrastructure as Code.

About

terraform-infrastructure is a skill in aj-geddes/useful-ai-prompts for building Infrastructure as Code with Terraform. It covers modular components, remote state management, and multi-cloud deployments across AWS, Azure, GCP, and on-premise targets. Developers use it when provisioning networks, compute, storage, and supporting cloud resources through declarative .tf files rather than console clicks. The skill guides agent sessions on state backends, module composition, and environment separation for staging and production. Reach for terraform-infrastructure when prompts mention Terraform plans, remote state, module structure, or multi-environment cloud provisioning.

  • Declarative infrastructure provisioning for AWS, Azure, GCP and on-premise
  • Remote state management with S3 backend, encryption, and DynamoDB locking
  • Multi-environment support for dev, staging, and production
  • Infrastructure versioning, code review, and automated testing workflows
  • Cost optimization, disaster recovery, and cross-region deployment patterns

Terraform Infrastructure by the numbers

  • 559 all-time installs (skills.sh)
  • Ranked #358 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill terraform-infrastructure

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs559
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you structure modular Terraform for multi-cloud deployments?

Provision, version, and manage cloud infrastructure declaratively across AWS, Azure, and GCP using modular Terraform configurations.

Who is it for?

Developers provisioning multi-environment cloud infrastructure with Terraform modules and remote state across AWS, Azure, or GCP.

Skip if: Teams standardized on CloudFormation, Pulumi, or click-ops console provisioning without Terraform in their stack.

When should I use this skill?

User asks to write Terraform modules, configure remote state, provision AWS/Azure/GCP resources, or manage IaC across environments.

What you get

Terraform modules, remote state backend config, environment-specific .tf files, and provisioned cloud resource definitions.

  • Terraform module files
  • Remote state backend configuration

By the numbers

  • Supports three major cloud providers: AWS, Azure, and GCP

Files

SKILL.mdMarkdownGitHub ↗

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:

GuideContents
AWS Infrastructure ModuleAWS Infrastructure Module
Variables and OutputsVariables and Outputs
Terraform Deployment ScriptTerraform 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

Related skills

How it compares

Choose terraform-infrastructure over console-oriented cloud skills when infrastructure must be versioned as modular Terraform with shared remote state.

FAQ

Which clouds does terraform-infrastructure support?

terraform-infrastructure covers Terraform provisioning for AWS, Azure, GCP, and on-premise resources. It uses modular components and remote state to manage multi-cloud and multi-environment deployments declaratively.

Does terraform-infrastructure handle Terraform state?

terraform-infrastructure includes remote state management patterns so teams share consistent infrastructure state across agents and CI. Proper state backends prevent drift when multiple environments deploy from the same modules.

When should a developer invoke terraform-infrastructure?

Invoke terraform-infrastructure when provisioning cloud resources, writing .tf modules, or separating staging and production infrastructure. Trigger on prompts mentioning Terraform plans, remote state, or multi-cloud IaC.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.