Write reusable Terraform modules with remote state
Scanned 9/10/2026
Install to Claude Code
npx -y skills add LoopyLuci/Skills --skill terraform-module-patterns --agent claude-codeInstalls 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 automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-terraform-module-patterns)More formats (shields.io, HTML) on the badges page.
---
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"
}
}
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!