Back to Skills

Generating Infrastructure as Code

jeremylongshore
Updated Today
18 views
712
74
712
View on GitHub
Metaaiautomation

About

This skill enables Claude to generate production-ready Infrastructure as Code (IaC) for platforms like Terraform, CloudFormation, and Pulumi across major cloud providers. Use it when you need to create or automate cloud infrastructure deployments by specifying your target platform and provider. It's triggered by phrases like "generate IaC," "create Terraform," or requests for infrastructure code.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus
Git CloneAlternative
git clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/Generating Infrastructure as Code

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

Documentation

Overview

This skill empowers Claude to automate the creation of infrastructure code, streamlining the deployment and management of cloud resources. It supports multiple IaC platforms and cloud providers, ensuring flexibility and best practices.

How It Works

  1. Receiving Request: Claude receives a request for IaC generation, identifying the desired platform and cloud provider.
  2. Invoking Plugin: Claude invokes the infrastructure-as-code-generator plugin with the user's specifications.
  3. Generating Code: The plugin generates the requested IaC configuration based on the user's requirements.
  4. Presenting Code: Claude presents the generated IaC code to the user for review and deployment.

When to Use This Skill

This skill activates when you need to:

  • Generate Terraform configurations for AWS, GCP, or Azure.
  • Create CloudFormation templates for AWS infrastructure.
  • Develop Pulumi programs for multi-cloud deployments.

Examples

Example 1: AWS ECS Fargate Infrastructure

User request: "Generate Terraform configuration for an AWS ECS Fargate cluster."

The skill will:

  1. Invoke the infrastructure-as-code-generator plugin, specifying Terraform and AWS ECS Fargate.
  2. Generate a Terraform configuration file defining the ECS cluster, task definition, and related resources.

Example 2: Azure Resource Group Deployment

User request: "Create an ARM template for deploying an Azure Resource Group with a virtual network."

The skill will:

  1. Invoke the infrastructure-as-code-generator plugin, specifying ARM template and Azure Resource Group.
  2. Generate an ARM template defining the resource group and virtual network resources.

Best Practices

  • Specificity: Provide clear and specific requirements for the desired infrastructure.
  • Platform Selection: Choose the appropriate IaC platform based on your cloud provider and organizational standards.
  • Review & Validation: Always review and validate the generated IaC code before deploying it to production.

Integration

This skill can be integrated with other Claude Code plugins for deployment automation, security scanning, and cost estimation, providing a comprehensive DevOps workflow. For example, it can be used with a deployment plugin to automatically deploy the generated infrastructure.

GitHub Repository

jeremylongshore/claude-code-plugins-plus
Path: backups/plugin-enhancements/plugin-backups/infrastructure-as-code-generator_20251020_064129/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

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

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