$npx -y skills add jmxt3/gitscape.ai --skill google-cloud-waf-cost-optimizationGenerates cost optimization guidance for Google Cloud workloads based on the Google Cloud Well-Architected Framework (WAF). Use this skill to evaluate a workload, identify cost requirements and constraints, and provide actionable recommendations for build, deploy, and manage the
| 1 | # Google Cloud Well-Architected Framework skill for the Cost Optimization pillar |
| 2 | |
| 3 | ## Overview |
| 4 | |
| 5 | The Cost Optimization pillar of the Google Cloud Well-Architected Framework |
| 6 | provides a structured approach to optimize the costs of your cloud workloads |
| 7 | while maximizing business value. Cloud costs differ significantly from |
| 8 | on-premises capital expenditure (CapEx) models, requiring a shift to operational |
| 9 | expenditure (OpEx) management and a culture of accountability (FinOps). |
| 10 | |
| 11 | ## Core principles |
| 12 | |
| 13 | The recommendations in the cost optimization pillar of the Well-Architected |
| 14 | Framework are aligned with the following core principles: |
| 15 | |
| 16 | - **Align cloud spending with business value**: Ensure that your cloud |
| 17 | resources deliver measurable business value by aligning IT spending with |
| 18 | business objectives. Prioritize investments that directly contribute to |
| 19 | revenue, customer satisfaction, or operational efficiency. Grounding |
| 20 | document: |
| 21 | https://docs.cloud.google.com/architecture/framework/cost-optimization/align-cloud-spending-business-value |
| 22 | |
| 23 | - **Foster a culture of cost awareness**: Ensure that people across your |
| 24 | organization consider the cost impact of their decisions and activities. |
| 25 | Provide teams with the visibility and information they need to make informed, |
| 26 | cost-conscious choices. Grounding document: |
| 27 | https://docs.cloud.google.com/architecture/framework/cost-optimization/foster-culture-cost-awareness |
| 28 | |
| 29 | - **Optimize resource usage**: Provision only the resources that you need and |
| 30 | pay only for what you consume. Select the most cost-effective resource types, |
| 31 | sizes, and locations that meet your technical and business requirements. |
| 32 | Grounding document: |
| 33 | https://docs.cloud.google.com/architecture/framework/cost-optimization/optimize-resource-usage |
| 34 | |
| 35 | - **Optimize continuously**: Continuously monitor your cloud resource usage and |
| 36 | costs, and proactively make adjustments as needed to optimize your spending. |
| 37 | This iterative approach helps identify and address inefficiencies before they |
| 38 | become significant. Grounding document: |
| 39 | https://docs.cloud.google.com/architecture/framework/cost-optimization/optimize-continuously |
| 40 | |
| 41 | ## Relevant Google Cloud products |
| 42 | |
| 43 | The following are _examples_ of Google Cloud products and features that are |
| 44 | relevant to cost optimization: |
| 45 | |
| 46 | - **Visibility and monitoring**: |
| 47 | |
| 48 | - **Cloud Billing reports**: Native dashboards for visualizing spending and |
| 49 | trends. |
| 50 | - **BigQuery billing export**: Enables granular, custom analysis of billing |
| 51 | data using SQL and BI tools. |
| 52 | - **Looker Studio**: Used for creating detailed, shared cost dashboards and |
| 53 | reports. |
| 54 | - **Billing alerts and budgets**: Automated notifications when spending |
| 55 | reaches predefined thresholds. |
| 56 | |
| 57 | - **Automation and optimization tools**: |
| 58 | |
| 59 | - **Recommender / Active Assist**: Automatically identifies idle resources, |
| 60 | rightsizing opportunities, and unused commitments. |
| 61 | - **Cloud Hub Optimization**: Integrates billing and resource utilization data |
| 62 | to help developers and application owners quickly identify their most |
| 63 | expensive, fluctuating, or underutilized cloud resources. |
| 64 | - **FinOps hub**: Presents active savings and optimization opportunities in |
| 65 | one dashboard. |
| 66 | - **Billing quotas**: Limits on resource consumption to prevent unexpected |
| 67 | cost spikes. |
| 68 | |
| 69 | - **Efficient infrastructure**: |
| 70 | |
| 71 | - **Managed services and serverless services**: Services like Cloud Run, Cloud |
| 72 | Run functions, and GKE Autopilot reduce operational overhead and pay-per-use |
| 73 | scaling. |
| 74 | - **Compute Engine**: Use of Spot VMs for fault-tolerant workloads and |
| 75 | Committed Use Discounts (CUDs) for stable workloads. |
| 76 | - **Cloud Storage Lifecycle Policies**: Automatically moves data to lower-cost |
| 77 | storage classes (Nearline, Coldline, Archive) based on age or access. |
| 78 | |
| 79 | - **Organization and governance**: |
| 80 | |
| 81 | - **Resource Manager**: Logical structure (Organizations, Folders, Projects) |
| 82 | for cost attribution. |
| 83 | - **Labels**: Metadata tags for categorizing and filtering costs by |
| 84 | environment, team, or application. |
| 85 | - **Organization Policy Service**: Enforces constraints (e.g., restricted |
| 86 | regions or machine types) to control costs. |
| 87 | |
| 88 | ## Workload assessment questions |
| 89 | |
| 90 | Ask appropriate questions to understand the cost-related requirements and |
| 91 | constraints of the workload and the user's organization. Choose questions from |
| 92 | the following list: |
| 93 | |
| 94 | - How do you incorporate cost considerations into your cloud architecture design |
| 95 | process? |
| 96 | - How do you foster a culture of cost awareness among your development teams? |
| 97 | - How do you monitor and manage cl |