Cloud Cost Optimization

Software development skill, available on Zeplik

Cloud Cost Optimization is a ready-to-run software development skill on Zeplik. Not for product pricing/margins (use startup-financial-modeling). Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer.

The Cloud Cost Optimization skill loads automatically when your request matches it, or you can invoke it directly by typing /cost-optimization in any chat. It works with attachments, connectors, and any model that supports the task, so you get the same expert method every time without setting anything up.

What the Cloud Cost Optimization skill can do

Try these prompts on Zeplik

Pick a prompt to open it in the Zeplik app. If you are not signed in yet, your prompt is waiting for you the moment you do.

How the Cloud Cost Optimization skill works

/cost-optimization

Systematically reduce cloud infrastructure spending across AWS, Azure, GCP, and OCI while maintaining performance and reliability. This is about the cloud bill, not product pricing: the user pastes a bill breakdown, Cost Explorer export, Terraform, or a description of their infrastructure; deliver a prioritized savings plan, rightsizing recommendations, and ready-to-apply config snippets as chat artifacts.

When to Use

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

Cost Optimization Framework

  1. Visibility: cost allocation tags, cost management tools, budget alerts, cost dashboards.
  2. Right-Sizing: analyze utilization, downsize over-provisioned resources, auto-scaling, remove idle resources.
  3. Pricing Models: reserved capacity, spot/preemptible instances, savings plans, committed use discounts.
  4. Architecture Optimization: managed services, caching, data transfer optimization, 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: up to 66% savings
EC2 Instance Savings Plans: up to 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: reuse Windows Server and SQL Server licenses, up to 80% savings combined with RI.
  • Azure Advisor: right-size VMs, delete unused resources, reserved capacity and storage recommendations.

GCP Cost Optimization

  • Committed Use Discounts: 1 or 3 year commitment, up to 57% savings, resource-based or spend-based.
  • Sustained Use Discounts: automatic, up to 30% for long-running instances, no commitment.
  • Preemptible VMs: up to 80% savings, 24-hour max runtime, best for batch workloads.

OCI Cost Optimization

  • Flexible Shapes: scale OCPUs and memory independently, match sizing to workload demand.
  • Commitments and Budgets: annual commitments for predictable spend, compartment-level budgets with alerts, OCI Cost Analysis forecasts.
  • Preemptible Capacity: batch and ephemeral workloads, interruption-tolerant autoscaling groups, mix with standard capacity for critical services.

Tagging Strategy

locals {
  common_tags = {
    Environment = "production"
    Project     = "my-project"
    CostCenter  = "engineering"
    Owner       = "[email protected]"
    ManagedBy   = "terraform"
  }
}

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

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

See references/tagging-standards.md for the tagging standard.

Cost Monitoring

# 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 = ["[email protected]"]
  }
}

Anomaly detection: AWS Cost Anomaly Detection, Azure Cost Management alerts, GCP Budget alerts, OCI Budgets and Cost Analysis.

Architecture Patterns

  1. Serverless First: Lambda/Functions for event-driven work; pay only for execution, no idle costs.
  2. Right-Sized Databases: small instances in dev/staging, sized-with-replicas in production only.
  3. Multi-Tier Storage: hot in Standard, warm in Standard-IA (30 days), cold in Glacier (90 days), archive in Deep Archive (365 days).
  4. Auto-Scaling: scale on utilization alarms instead of provisioning for peak.

Cost Optimization Checklist

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

Tools

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

Usage

/cost-optimization $ARGUMENTS

How to use the Cloud Cost Optimization skill

  1. Sign in to Zeplik

    Create a free Zeplik account or sign in. New accounts start with free credits, so you can try the Cloud Cost Optimization skill right away.

  2. Describe your software development task

    Ask in plain language, or type /cost-optimization to invoke the skill directly. Zeplik recognizes the Cloud Cost Optimization skill and applies its method.

  3. Review and refine the result

    Zeplik returns a clear, structured answer. Ask follow-ups in the same chat to refine it or take the next step.

Source and credit

Author
wshobson
License
MIT

Adapted from the open-source wshobson/agents project and tuned to run natively on Zeplik. View source on GitHub.

Frequently asked questions

What is the Cloud Cost Optimization skill?
Cloud Cost Optimization is a ready-to-run software development skill on Zeplik. Not for product pricing/margins (use startup-financial-modeling). Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer.
How do I use Cloud Cost Optimization on Zeplik?
Sign in to Zeplik and ask in plain language, or type /cost-optimization in any chat to invoke it directly. The skill applies its method and returns a result you can refine in the same conversation.
Which AI model does the Cloud Cost Optimization skill use?
Any model you choose. Zeplik works across every model in one chat, so the Cloud Cost Optimization skill runs on your preferred model for the task.
Where does the Cloud Cost Optimization skill come from?
The Cloud Cost Optimization skill is adapted from the open-source wshobson/agents project (MIT) and tuned to run natively on Zeplik. The original source is linked on this page.
How much does the Cloud Cost Optimization skill cost?
Using the skill is free to start. You only spend Zeplik credits when the assistant runs, and new accounts begin with free credits.

Related software development skills

More on Zeplik

Try Cloud Cost Optimization on Zeplik

Every model, one chat. Bring the Cloud Cost Optimization skill into your next conversation and let the assistant do the work.

Browse all skills
Cloud Cost Optimization - Software development skill for Zeplik AI | Zeplik Chat