New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Cloud architecture and infrastructure-as-code plugin covering AWS, Azure, GCP, and hybrid networking.

version
1.2.1
GitHub stars
126

What it does

  • Adds 6 agents (cloud-architect, terraform-specialist, network-engineer, kubernetes-architect, hybrid-cloud-architect, deployment-engineer) and 4 skills, with no slash commands
  • Covers reusable Terraform modules for VPC, managed Kubernetes, managed databases, object storage, and IAM across all three clouds
  • Provides hybrid connectivity guidance comparing Site-to-Site VPN, Direct Connect or Interconnect, and Transit Gateway hub-and-spoke designs
  • Designed for teams planning multi-cloud architectures, reducing cloud spend, or standardizing provisioning as code

Cloud architecture design for AWS/Azure/GCP, Kubernetes cluster configuration, Terraform infrastructure-as-code, hybrid cloud networking, and multi-cloud cost optimization

Add marketplace

/plugin marketplace add HermeticOrmus/LibreUIUX-Claude-Code

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install cloud-infrastructure@libreuiux

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Cloud Cost Optimization

Strategies and patterns for optimizing cloud costs across AWS, Azure, and GCP.

Purpose

Implement systematic cost optimization strategies to reduce cloud spending while maintaining performance and reliability.

When to Use

  • Reduce cloud spending
  • Right-size resources
  • Implement cost governance
  • Optimize multi-cloud costs
  • Meet budget constraints

Cost Optimization Framework

1. Visibility

  • Implement cost allocation tags
  • Use cloud cost management tools
  • Set up budget alerts
  • Create cost dashboards

2. Right-Sizing

  • Analyze resource utilization
  • Downsize over-provisioned resources
  • Use auto-scaling
  • Remove idle resources

3. Pricing Models

  • Use reserved capacity
  • Leverage spot/preemptible instances
  • Implement savings plans
  • Use committed use discounts

4. Architecture Optimization

  • Use managed services
  • Implement caching
  • Optimize data transfer
  • Use lifecycle policies

AWS Cost Optimization

Reserved Instances

Savings: 30-72% vs On-Demand
Term: 1 or 3 years
Payment: All/Partial/No upfront
Flexibility: Standard or Convertible

Savings Plans

Compute Savings Plans: 66% savings
EC2 Instance Savings Plans: 72% savings
Applies to: EC2, Fargate, Lambda
Flexible across: Instance families, regions, OS

Spot Instances

Savings: Up to 90% vs On-Demand
Best for: Batch jobs, CI/CD, stateless workloads
Risk: 2-minute interruption notice
Strategy: Mix with On-Demand for resilience

S3 Cost Optimization

resource "aws_s3_bucket_lifecycle_configuration" "example" {
  bucket = aws_s3_bucket.example.id

  rule {
    id     = "transition-to-ia"
    status = "Enabled"

    transition {
      days          = 30
      storage_class = "STANDARD_IA"
    }

    transition {
      days          = 90
      storage_class = "GLACIER"
    }

    expiration {
      days = 365
    }
  }
}

Azure Cost Optimization

Reserved VM Instances

  • 1 or 3 year terms
  • Up to 72% savings
  • Flexible sizing
  • Exchangeable

Azure Hybrid Benefit

  • Use existing Windows Server licenses
  • Up to 80% savings with RI
  • Available for Windows and SQL Server

Azure Advisor Recommendations

  • Right-size VMs
  • Delete unused resources
  • Use reserved capacity
  • Optimize storage

GCP Cost Optimization

Committed Use Discounts

  • 1 or 3 year commitment
  • Up to 57% savings
  • Applies to vCPUs and memory
  • Resource-based or spend-based

Sustained Use Discounts

  • Automatic discounts
  • Up to 30% for running instances
  • No commitment required
  • Applies to Compute Engine, GKE

Preemptible VMs

  • Up to 80% savings
  • 24-hour maximum runtime
  • Best for batch workloads

Tagging Strategy

AWS Tagging

locals {
  common_tags = {
    Environment = "production"
    Project     = "my-project"
    CostCenter  = "engineering"
    Owner       = "team@example.com"
    ManagedBy   = "terraform"
  }
}

resource "aws_instance" "example" {
  ami           = "ami-12345678"
  instance_type = "t3.medium"

  tags = merge(
    local.common_tags,
    {
      Name = "web-server"
    }
  )
}

Reference: See references/tagging-standards.md

Cost Monitoring

Budget Alerts

# AWS Budget
resource "aws_budgets_budget" "monthly" {
  name              = "monthly-budget"
  budget_type       = "COST"
  limit_amount      = "1000"
  limit_unit        = "USD"
  time_period_start = "2024-01-01_00:00"
  time_unit         = "MONTHLY"

  notification {
    comparison_operator        = "GREATER_THAN"
    threshold                  = 80
    threshold_type            = "PERCENTAGE"
    notification_type         = "ACTUAL"
    subscriber_email_addresses = ["team@example.com"]
  }
}

Cost Anomaly Detection

  • AWS Cost Anomaly Detection
  • Azure Cost Management alerts
  • GCP Budget alerts

Architecture Patterns

Pattern 1: Serverless First

  • Use Lambda/Functions for event-driven
  • Pay only for execution time
  • Auto-scaling included
  • No idle costs

Pattern 2: Right-Sized Databases

Development: t3.small RDS
Staging: t3.large RDS
Production: r6g.2xlarge RDS with read replicas

Pattern 3: Multi-Tier Storage

Hot data: S3 Standard
Warm data: S3 Standard-IA (30 days)
Cold data: S3 Glacier (90 days)
Archive: S3 Deep Archive (365 days)

Pattern 4: Auto-Scaling

resource "aws_autoscaling_policy" "scale_up" {
  name                   = "scale-up"
  scaling_adjustment     = 2
  adjustment_type        = "ChangeInCapacity"
  cooldown              = 300
  autoscaling_group_name = aws_autoscaling_group.main.name
}

resource "aws_cloudwatch_metric_alarm" "cpu_high" {
  alarm_name          = "cpu-high"
  comparison_operator = "GreaterThanThreshold"
  evaluation_periods  = "2"
  metric_name         = "CPUUtilization"
  namespace           = "AWS/EC2"
  period              = "60"
  statistic           = "Average"
  threshold           = "80"
  alarm_actions       = [aws_autoscaling_policy.scale_up.arn]
}

Cost Optimization Checklist

  • Implement cost allocation tags
  • Delete unused resources (EBS, EIPs, snapshots)
  • Right-size instances based on utilization
  • Use reserved capacity for steady workloads
  • Implement auto-scaling
  • Optimize storage classes
  • Use lifecycle policies
  • Enable cost anomaly detection
  • Set budget alerts
  • Review costs weekly
  • Use spot/preemptible instances
  • Optimize data transfer costs
  • Implement caching layers
  • Use managed services
  • Monitor and optimize continuously

Tools

  • AWS: Cost Explorer, Cost Anomaly Detection, Compute Optimizer
  • Azure: Cost Management, Advisor
  • GCP: Cost Management, Recommender
  • Multi-cloud: CloudHealth, Cloudability, Kubecost

Reference Files

  • references/tagging-standards.md - Tagging conventions
  • assets/cost-analysis-template.xlsx - Cost analysis spreadsheet

Related Skills

  • terraform-module-library - For resource provisioning
  • multi-cloud-architecture - For cloud selection

Readme

Cloud Infrastructure Plugin

Multi-cloud architecture, Terraform modules, and infrastructure-as-code mastery.

Cloud Infrastructure provides:

  • 4 Skills - Terraform, multi-cloud, networking, cost optimization
  • 6 Agents - Cloud architects for AWS, GCP, Azure, hybrid, networking
  • No Commands - Agent-driven workflows

Result: Scalable, cost-effective cloud infrastructure defined as code.


Quick Start

Invoke Agents

@cloud-architect design a multi-region AWS setup for high availability
@terraform-specialist create a reusable VPC module
@network-engineer design hybrid connectivity between AWS and on-prem
@kubernetes-architect plan a production EKS deployment

The 4 Skills

1. Terraform Module Library

Reusable, production-ready infrastructure modules

Core Modules:

ModulePurpose
VPCNetwork isolation, subnets, routing
EKS/GKE/AKSManaged Kubernetes clusters
RDS/CloudSQLManaged databases
S3/GCSObject storage with policies
IAMIdentity and access management

Best Practices:

# Module structure
module "vpc" {
  source = "./modules/vpc"

  name               = "production"
  cidr               = "10.0.0.0/16"
  availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"]

  private_subnets    = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
  public_subnets     = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]

  enable_nat_gateway = true
  single_nat_gateway = false  # HA: one NAT per AZ
}

2. Multi-Cloud Architecture

Design principles for AWS, GCP, and Azure

Cloud Comparison:

ConcernAWSGCPAzure
ComputeEC2, ECS, EKSCompute Engine, GKEVMs, AKS
DatabaseRDS, DynamoDBCloudSQL, FirestoreCosmosDB, SQL
ServerlessLambdaCloud FunctionsFunctions
StorageS3GCSBlob Storage

Multi-Cloud Patterns:

  • Active-Active: Workloads on multiple clouds
  • DR/Backup: Primary on one, DR on another
  • Best-of-Breed: Use each cloud's strengths
  • Avoid Lock-in: Containerize, use Terraform

3. Hybrid Cloud Networking

Connect cloud, on-premises, and edge

Connectivity Options:

OptionSpeedUse Case
Site-to-Site VPN~1.25 GbpsQuick setup, backup
Direct Connect/Interconnect1-100 GbpsProduction workloads
Transit GatewayHub-and-spokeMulti-VPC, multi-region
Mesh VPNVariesMulti-site

Architecture:

On-Premises DC
      |
  Direct Connect
      |
Transit Gateway ---- VPC Production
      |          ---- VPC Staging
      |          ---- VPC Development
      |
Shared Services VPC

4. Cost Optimization

Reduce cloud spend without sacrificing performance

Key Strategies:

StrategySavingsEffort
Reserved Instances30-60%Low
Spot/Preemptible60-90%Medium
Right-sizing20-40%Medium
Auto-scalingVariableHigh
Storage tiering30-50%Low

Quick Wins:

# Enable S3 lifecycle policies
resource "aws_s3_bucket_lifecycle_configuration" "example" {
  bucket = aws_s3_bucket.example.id

  rule {
    id     = "archive-old-objects"
    status = "Enabled"

    transition {
      days          = 90
      storage_class = "GLACIER"
    }
  }
}

Monitoring:

  • AWS Cost Explorer / GCP Billing / Azure Cost Management
  • Set budget alerts
  • Tag resources for cost allocation
  • Review unused resources weekly

The 6 Agents

AgentExpertise
cloud-architectHigh-level cloud strategy and design
terraform-specialistIaC, modules, state management
network-engineerVPCs, peering, hybrid connectivity
kubernetes-architectManaged K8s, cluster design
hybrid-cloud-architectMulti-cloud, on-prem integration
deployment-engineerCI/CD, deployment automation

Plugin Structure

cloud-infrastructure/
├── README.md                              # This file
│
├── skills/                                # Knowledge base
│   ├── terraform-module-library/
│   │   ├── SKILL.md                       # Module patterns
│   │   └── references/
│   │       └── aws-modules.md             # AWS-specific modules
│   ├── multi-cloud-architecture/
│   │   └── SKILL.md                       # Multi-cloud patterns
│   ├── hybrid-cloud-networking/
│   │   └── SKILL.md                       # Networking patterns
│   └── cost-optimization/
│       └── SKILL.md                       # Cost patterns
│
└── agents/                                # Specialist agents
    ├── cloud-architect.md                 # Strategy & design
    ├── terraform-specialist.md            # IaC expert
    ├── network-engineer.md                # Networking expert
    ├── kubernetes-architect.md            # K8s expert
    ├── hybrid-cloud-architect.md          # Hybrid/multi-cloud
    └── deployment-engineer.md             # Deployment automation

Usage Examples

Example 1: New AWS Environment

User: Set up a production AWS environment with EKS, RDS, and proper networking

@cloud-architect designs:
1. VPC Architecture
   - 3 AZs for high availability
   - Public subnets for ALB
   - Private subnets for EKS/RDS
   - NAT Gateways per AZ

2. EKS Cluster
   - Managed node groups
   - Cluster autoscaler
   - ALB Ingress Controller
   - External Secrets Operator

3. RDS PostgreSQL
   - Multi-AZ deployment
   - Automated backups
   - Parameter groups optimized

4. Security
   - Security groups (least privilege)
   - IAM roles for service accounts
   - Secrets in AWS Secrets Manager

Example 2: Cost Reduction

User: Our AWS bill is $50k/month, help reduce it

@cloud-architect analyzes:
1. Compute (40% of bill)
   - 20 instances never scale down -> Auto Scaling Groups
   - Dev/staging run 24/7 -> Scheduled scaling
   - No reserved capacity -> Purchase 1-year RIs

2. Storage (25% of bill)
   - 5TB in S3 Standard (rarely accessed) -> Glacier
   - EBS volumes oversized -> Right-size based on metrics

3. Networking (15% of bill)
   - NAT Gateway data transfer -> Consider VPC endpoints
   - Inter-region traffic -> Cache locally

Projected savings: $18k/month (36%)

Example 3: Multi-Cloud Strategy

User: We need to avoid AWS lock-in while using their services

@hybrid-cloud-architect recommends:
1. Containerize Everything
   - EKS now, but Kubernetes is portable
   - Use Helm for deployments

2. Abstract Cloud Services
   - Use Terraform for all clouds
   - Store state in cloud-agnostic backend

3. Data Portability
   - Standard formats (PostgreSQL, not DynamoDB)
   - S3-compatible storage (works with GCS, MinIO)

4. Monitoring
   - Cloud-agnostic: Datadog, Grafana Cloud
   - Or self-hosted: Prometheus + Grafana

When to Use This Plugin

Perfect For:

  • Cloud architecture design
  • Infrastructure-as-code (Terraform)
  • Multi-cloud and hybrid strategies
  • Network design and connectivity
  • Cost optimization initiatives

Combines Well With:

  • kubernetes-operations - K8s workload management
  • cicd-automation - Infrastructure CI/CD
  • security-compliance - Cloud security posture
  • observability-monitoring - Cloud monitoring

Technology Reference

CategoryTechnologies
IaCTerraform, Pulumi, CloudFormation, CDK
Cloud ProvidersAWS, GCP, Azure, DigitalOcean
NetworkingVPC, Direct Connect, Transit Gateway
Container PlatformsEKS, GKE, AKS, OpenShift
Cost ToolsAWS Cost Explorer, Infracost, Spot.io

Key Patterns

Terraform State Management

terraform {
  backend "s3" {
    bucket         = "company-terraform-state"
    key            = "production/vpc/terraform.tfstate"
    region         = "us-west-2"
    encrypt        = true
    dynamodb_table = "terraform-locks"
  }
}

Environment Separation

environments/
├── production/
│   ├── main.tf
│   └── terraform.tfvars
├── staging/
│   ├── main.tf
│   └── terraform.tfvars
└── development/
    ├── main.tf
    └── terraform.tfvars

modules/
├── vpc/
├── eks/
└── rds/

Security Best Practices

  • Encrypt everything at rest and in transit
  • Use IAM roles, not access keys
  • Enable CloudTrail/Audit logging
  • Implement VPC flow logs
  • Use private endpoints where possible

License

Part of the LibreUIUX project - MIT License


"Infrastructure should be as reliable as you forget it exists."

Details

Marketplace
HermeticOrmus/LibreUIUX-Claude-Code
Source
plugins/cloud-infrastructure
Author
Seth Hobson
Category
Infrastructure
License
MIT
Keywords
cloud, aws, azure, gcp, kubernetes, terraform, infrastructure
Listed since
Apr 7, 2026

More from HermeticOrmus/LibreUIUX-Claude-Code

All 71

Similar to cloud-infrastructure

More DevOps & Cloud