Terraform AWS

    by Claudio M

    1

    Expert AWS Terraform engineering for modular, multi-environment infrastructure following strict dev-to-prod workflows.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Terraform AWS

    Example session with this skill installed

    Create a new resource module for an S3 bucket with versioning enabled and a lifecycle rule to transition objects to Glacier after 90 days.

    • Read your context and instructions
    • Compiled the terraform aws

    I have created the S3 bucket resource module under infra/modules/s3-bucket/. This module follows the naming principles, includes variable validations, and sets up the required documentation.

    S3 Bucket Module

    
    # infra/modules/s3-bucket/main.tf
    resource "aws_s3_bucket" "this" {
      bucket = var.bucket_name
      tags   = var.tags
    }
    
    resource "aws_s3_bucket_versioning" "this" {
      bucket = aws_s3_bucket.this.id
      versioning_configuration {
        status = var.enable_versioning ? "Enabled" : "Suspended"
      }
    }
    
    resource "aws_s3_bucket_lifecycle_configuration" "this" {
      bucket = aws_s3_bucket.this.id
    
      rule {
        id     = "glacier-transition"
        status = "Enabled"
    
        transition {
          days          = var.transition_days
          storage_class = "GLACIER"
        }
      }
    }
    
    # infra/modules/s3-bucket/variables.tf
    variable "bucket_name" {
      description = "The name of the S3 bucket"
      type        = string
      nullable    = false
    }
    
    variable "enable_versioning" {
      description = "Whether to enable versioning"
      type        = bool
      default     = true
    }
    
    variable "transition_days" {
      description = "Number of days before transitioning to Glacier"
      type        = number
      default     = 90
      validation {
        condition     = var.transition_days > 0
        error_message = "Transition days must be a positive integer."
      }
    }
    
    variable "tags" {
      description = "A map of tags to assign to the resource"
      type        = map(string)
      default     = {}
    }
    
    # infra/modules/s3-bucket/outputs.tf
    output "bucket_id_string" {
      description = "The name/ID of the bucket"
      value       = aws_s3_bucket.this.id
    }
    
    output "bucket_arn_string" {
      description = "The ARN of the bucket"
      value       = aws_s3_bucket.this.arn
    }
    
    # infra/modules/s3-bucket/versions.tf
    terraform {
      required_version = ">= 1.0"
      required_providers {
        aws = {
          source  = "hashicorp/aws"
          version = ">= 4.0"
        }
      }
    }
    

    Next steps

    1. Run terraform fmt -recursive to ensure consistent spacing.
    2. Initialize the module with terraform init to validate the provider constraints.
    3. Add a usage example to the infra/modules/s3-bucket/README.md.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Infrastructure as Code often turns into a disorganized mess of hardcoded values and inconsistent resource naming. This skill enforces a strict, hierarchical structure for AWS Terraform projects, ensuring code is modular, documented, and production-ready.

    What it does

    • Standardizes layouts by organizing code into reusable resource modules, infrastructure modules, and environment-specific compositions.
    • Enforces naming conventions using underscored identifiers, pluralized collections, and descriptive resource labels like aws_vpc.this.
    • Automates documentation by generating READMEs that include usage examples, requirements, inputs, and outputs for every module.
    • Manages environments by synchronizing changes across dev, test, uat, preprod, and prod using tfvars.json.
    • Hardens security by ensuring secrets are sourced from Secrets Manager or Parameter Store via write-only arguments to keep them out of state files.

    How it works

    1. Scope identification determines if a change belongs in a resource module, infrastructure module, or composition.
    2. File scaffolding creates the necessary main.tf, variables.tf, outputs.tf, versions.tf, and README.md files.
    3. Coding alignment applies block ordering, variable validation blocks, and nullable = false constraints.
    4. Validation and Review runs a pre-commit checklist including fmt, validate, and security checks like Checkov or TFLint.

    Why this beats prompting it yourself

    Generic prompts often produce flat file structures or omit critical version pinning. This skill enforces a specific promotion workflow and state management strategy that prevents configuration drift across environments. It specifically handles complex Terraform logic like for_each collections and terraform_remote_state reads which basic prompts often hallucinate.

    Use cases

    • Build new modules following a standardized file layout and naming schema.
    • Refactor legacy code by splitting monolithic files into resource and infrastructure modules.
    • Perform PR reviews to catch violations in block ordering or missing variable descriptions.
    • Setup environments by configuring remote backends and environment-specific tfvars.json files.

    Known limitations

    Requires a specific directory structure starting at infra/. Does not support HCL secrets; requires AWS Secrets Manager or Parameter Store for sensitive data.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Requires a directory structure rooted at infra/. Targets AWS provider. Assumes use of remote backends for compositions.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed today

    Permissions

    Terminal / Shell
    Read Files
    Listedtoday

    What's inside

    Creator

    Claudio M

    Claudio M

    Frequently Asked Questions

    This skill organizes code into a specific hierarchy under an infra directory, separating reusable resource modules from environment specific compositions. It enforces strict naming conventions, block ordering, and automated documentation to prevent the disorganized mess of hardcoded values common in basic infrastructure projects.

    You need an existing or new project directory starting at an infra folder. For security, the skill requires that you use AWS Secrets Manager or Parameter Store for sensitive data, as it does not support hardcoded HCL secrets.

    The skill produces standardized .tf files including main, variables, outputs, and versions, along with a committed tfvars.json for environment configurations. It also generates comprehensive README documentation for every module that includes usage examples, requirements, inputs, and outputs.

    You can ask your agent to build a new module following the standard layout, refactor legacy monolithic files into smaller modules, or perform a PR review to catch naming and ordering violations. It can also be used to setup new environments by configuring remote backends and environment specific variables.

    The skill follows a strict promotion order from dev to test, uat, preprod, and finally prod. It manages these stages by synchronizing changes across environment folders using tfvars.json files and ensuring every environment specific value is properly parameterized.

    This skill is designed specifically for AWS environments and requires a directory structure starting at the infra root. It focuses on modular HCL patterns and does not support secrets stored directly in code, requiring external AWS secret management services instead.

    New in DevOps & Cloud