Back to Skills

Building Terraform Modules

jeremylongshore
Updated Today
23 views
927
113
927
View on GitHub
Metawordaidesign

About

This skill enables Claude to generate production-ready, reusable Terraform modules from user specifications. It uses a dedicated plugin to create well-documented code that follows best practices for security and scalability. Use it when you need to create a new Terraform module, generate IaC configuration, or structure infrastructure code.

Documentation

Overview

This skill allows Claude to efficiently generate Terraform modules, streamlining infrastructure-as-code development. By utilizing the terraform-module-builder plugin, it ensures modules are production-ready, well-documented, and incorporate best practices.

How It Works

  1. Receiving User Request: Claude receives a request to create a Terraform module, including details about the module's purpose and desired features.
  2. Generating Module Structure: Claude invokes the terraform-module-builder plugin to create the basic file structure and configuration files for the module.
  3. Customizing Module Content: Claude uses the user's specifications to populate the module with variables, outputs, and resource definitions, ensuring best practices are followed.

When to Use This Skill

This skill activates when you need to:

  • Create a new Terraform module from scratch.
  • Generate production-ready Terraform configuration files.
  • Implement infrastructure as code using Terraform modules.

Examples

Example 1: Creating a VPC Module

User request: "Create a Terraform module for a VPC with public and private subnets, a NAT gateway, and appropriate security groups."

The skill will:

  1. Invoke the terraform-module-builder plugin to generate a basic VPC module structure.
  2. Populate the module with Terraform code to define the VPC, subnets, NAT gateway, and security groups based on best practices.

Example 2: Generating an S3 Bucket Module

User request: "Generate a Terraform module for an S3 bucket with versioning enabled, encryption at rest, and a lifecycle policy for deleting objects after 30 days."

The skill will:

  1. Invoke the terraform-module-builder plugin to create a basic S3 bucket module structure.
  2. Populate the module with Terraform code to define the S3 bucket with the requested features (versioning, encryption, lifecycle policy).

Best Practices

  • Documentation: Ensure the generated Terraform module includes comprehensive documentation, explaining the module's purpose, inputs, and outputs.
  • Security: Implement security best practices, such as using least privilege principles and encrypting sensitive data.
  • Modularity: Design the Terraform module to be reusable and configurable, allowing it to be easily adapted to different environments.

Integration

This skill integrates seamlessly with other Claude Code plugins by providing a foundation for infrastructure provisioning. The generated Terraform modules can be used by other plugins to deploy and manage resources in various cloud environments.

Quick Install

/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/skill-adapter

Copy and paste this command in Claude Code to install this skill

GitHub 仓库

jeremylongshore/claude-code-plugins-plus-skills
Path: backups/plugin-enhancements/plugin-backups/terraform-module-builder_20251020_065741/skills/skill-adapter
aiautomationclaude-codedevopsmarketplacemcp

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

llamaguard

Other

LlamaGuard is Meta's 7-8B parameter model for moderating LLM inputs and outputs across six safety categories like violence and hate speech. It offers 94-95% accuracy and can be deployed using vLLM, Hugging Face, or Amazon SageMaker. Use this skill to easily integrate content filtering and safety guardrails into your AI applications.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill