Skip to content
Back to skills

Google Cloud Waf Cost Optimization

ASecurity

Use when optimizing Google Cloud workload costs following the Well-Architected Framework.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 10, 2026
ai-agentsgobashsecurity

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill google-cloud-waf-cost-optimization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Google Cloud Waf Cost Optimization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Google Cloud Waf Cost Optimization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-google-cloud-waf-cost-optimization/badge)](https://www.skillsdirectory.com/skills/loopyluci-google-cloud-waf-cost-optimization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: google-cloud-waf-cost-optimization
description: Use when optimizing Google Cloud workload costs following the Well-Architected Framework.
tags: [google-cloud, waf, cost-optimization, finops, cloud-architecture]
related_skills: [google-cloud-waf-security, gke-productionize, google-cloud-recipe-auth]
---

# Google Cloud Well-Architected Framework — Cost Optimization

Provides a structured approach to optimize cloud costs while maximizing business value, following the FinOps lifecycle: Inform → Optimize → Operate.

## Core Principles

1. **Align cloud spending with business value**
2. **Foster a culture of cost awareness**
3. **Optimize resource usage**
4. **Optimize continuously**

## Cost Optimization Strategies

| Area | Strategy |
|------|----------|
| Compute | Use CUDs for steady workloads, Spot VMs for fault-tolerant tasks |
| Storage | Lifecycle policies (move to Nearline/Coldline/Archive) |
| Networking | Keep traffic regional, use Standard Tier, Cloud CDN |
| Managed Services | Prefer Cloud Run, GKE Autopilot, serverless |
| Visibility | Cloud Billing reports, BigQuery billing export, Looker Studio |

## Code Example: Storage Lifecycle Policy (gcloud)

```bash
# Set lifecycle policy on a bucket
gcloud storage buckets update gs://my-bucket --lifecycle-file=lifecycle.json
```

```json
// lifecycle.json
{
  "lifecycle": {
    "rule": [
      {
        "action": {"type": "SetStorageClass", "storageClass": "NEARLINE"},
        "condition": {"age": 30}
      },
      {
        "action": {"type": "SetStorageClass", "storageClass": "COLDLINE"},
        "condition": {"age": 90}
      }
    ]
  }
}
```

## Common Pitfalls

- **Retrieval fees**: Nearline/Coldline/Archive have retrieval costs — size data access patterns first
- **Over-provisioning**: Right-size based on Recommender data, not guesses
- **Missing labels**: 100% of resources should be labeled for cost attribution
- **No budgets**: Always configure billing alerts and budgets

## Verification Checklist

- [ ] All resources labeled with key metadata (env, team, app)
- [ ] BigQuery billing export enabled
- [ ] Budgets and alerts configured
- [ ] Rightsizing recommendations reviewed
- [ ] Storage lifecycle policies active
- [ ] CUD coverage optimized monthly

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.