Skip to content
Back to skills

Terraform Module Patterns

ASecurity

Write reusable Terraform modules with remote state

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 10, 2026
ai-agentsawsterraformbackend

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill terraform-module-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Terraform Module Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Terraform Module Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-terraform-module-patterns/badge)](https://www.skillsdirectory.com/skills/loopyluci-terraform-module-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: terraform-module-patterns
description: "Write reusable Terraform modules with remote state"
---

# Terraform Module Patterns

## Module Structure
```hcl
modules/
  vpc/
    main.tf
    variables.tf
    outputs.tf
```

## Reusable Module
```hcl
variable "name" { type = string }
variable "cidr" { type = string }

resource "aws_vpc" "this" {
  cidr_block = var.cidr
  tags = { Name = var.name }
}
```

## Remote State
```hcl
terraform {
  backend "s3" {
    bucket = "my-state-bucket"
    key    = "prod/terraform.tfstate"
    region = "us-east-1"
  }
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.