/marks-languages:terraformfrom marks-languages
Terraform patterns for AWS infrastructure. Use when writing IaC for cloud infrastructure.
Ships in marks-languages. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
modules/
└── vpc/
├── main.tf # Resources
├── variables.tf # Input variables
├── outputs.tf # Output values
└── versions.tf # Provider requirements
variable "environment" {
type = string
description = "Environment name"
validation {
condition = contains(["dev", "staging", "prod"], var.environment)
error_message = "Environment must be dev, staging, or prod."
}
}
variable "instance_type" {
type = string
default = "t3.micro"
validation {
condition = can(regex("^t3\\.", var.instance_type))
error_message = "Only t3 instance types allowed."
}
}
# Conditional resource
resource "aws_eip" "nat" {
count = var.enable_nat_gateway ? 1 : 0
vpc = true
}
# For each from map
resource "aws_subnet" "private" {
for_each = var.private_subnets
vpc_id = aws_vpc.main.id
cidr_block = each.value.cidr
availability_zone = each.value.az
tags = merge(local.common_tags, {
Name = "${var.name}-private-${each.key}"
})
}
# Dynamic blocks
resource "aws_security_group" "main" {
dynamic "ingress" {
for_each = var.ingress_rules
content {
from_port = ingress.value.port
to_port = ingress.value.port
protocol = "tcp"
cidr_blocks = ingress.value.cidrs
}
}
}
# Remote state backend
terraform {
backend "s3" {
bucket = "my-terraform-state"
key = "env/prod/terraform.tfstate"
region = "us-east-1"
encrypt = true
dynamodb_table = "terraform-locks"
}
}
# Read remote state
data "terraform_remote_state" "vpc" {
backend = "s3"
config = {
bucket = "my-terraform-state"
key = "env/prod/vpc/terraform.tfstate"
region = "us-east-1"
}
}
# Locals for computed values
locals {
common_tags = {
Environment = var.environment
ManagedBy = "terraform"
Project = var.project
}
az_count = length(data.aws_availability_zones.available.names)
}
# Data sources
data "aws_availability_zones" "available" {
state = "available"
}
data "aws_caller_identity" "current" {}
# Outputs
output "vpc_id" {
value = aws_vpc.main.id
description = "VPC ID"
}
terraform fmt and terraform validateprevent_destroy for critical resourcescreate_before_destroy for zero-downtime updatesterraform plan in CI before applyWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/bashDefensive Bash scripting patterns for reliable automation. Use when writing shell scripts./cloud-designDesign resilient, scalable multi-cloud architectures with best practices for AWS, Azure, and GCP. Use when creating cloud architecture diagrams, planning cloud infrastructure, or designing cloud migration strategies./golangGo patterns for backend development, testing, and clean architecture. Use when writing Go code./k8s-architectureDesign and implement production-grade Kubernetes clusters with best practices for reliability, security, and scalability. Use when planning cluster architecture, designing K8s network models, or implementing multi-cluster strategies.npx claudepluginhub malston/marks-marketplace --plugin marks-languages