Real-time Pricing

MechCloud displays cost information directly in the plan output before any infrastructure changes are applied. This enables cost-aware infrastructure decisions during development rather than discovering costs after deployment.

Overview

When generating an execution plan, MechCloud calculates and displays comprehensive cost information for GCP resources that have associated costs.

Supported Billing Models

Model
How it appears in the plan
Examples

Usage-based (hourly)

Hourly rate + max monthly total (730 hours)

Compute Engine VM, GKE Cluster

Storage (GB-month)

Rate + total when size is known

Persistent Disk

Usage-Based Charges (Price + Cost)

For resources with predictable usage patterns, MechCloud shows both price rates and calculated costs:

  • Compute Engine instance hours

  • Persistent Disk storage (GB-Mo)

  • GKE Cluster management fee

Example: A Compute Engine e2-micro instance shows price: $0.00835/Hrs, monthly: $6.10

Cost Change Tracking

MechCloud displays cost change percentages for all resource actions, helping you understand the financial impact of infrastructure changes.

Create Actions

When creating new resources, the cost change is +100% (from $0 to the new cost):

Update Actions

When modifying existing resources, the change percentage reflects the actual cost difference.

Delete Actions

When deleting resources, the cost change is -100% (from current cost to $0):

Plan Output Examples

Compute Engine Instance (Usage-Based Charges)

Compute Engine instances have predictable usage patterns, so MechCloud calculates and displays actual hourly and monthly costs.

Creating a Compute Engine instance:

Plan output:

The plan shows:

  • vCPU price: Calculated hourly cost for vCPUs.

  • RAM price: Calculated hourly cost for Memory (GB).

  • Boot Disk: Calculated monthly cost for the specified Persistent Disk.

  • Monthly: Estimated monthly cost (hourly × 730 hours).

  • Change: +100% - new resource.

Supported Resources

MechCloud provides real-time pricing for a comprehensive set of GCP resource types including compute, storage, networking, databases, and other services.

For the complete list of supported resources with pricing examples, see Examples (Resources With Cost).

Regional Pricing

Costs vary by GCP region. MechCloud automatically applies region-specific pricing.

Using Pricing Data

Track Environment Costs

When generating plans for different Resource Contexts:

Best Practices

Include cost justification in code comments - Document why specific instance types or sizes were chosen.

Compare costs during code review - Review cost deltas alongside configuration changes.

Track cost trends over time - Save plan outputs to monitor infrastructure cost evolution.

Use Resource Context for cost isolation - Separate cost tracking by environment (dev, staging, prod).

Monitor actual vs estimated costs - Compare MechCloud estimates against actual cloud bills to refine understanding.

Integration with Stateless IaC

Real-time pricing works seamlessly with MechCloud's stateless architecture:

Fresh pricing every plan - No stale data from state files

Accurate cost deltas - Costs compared against actual current state

Environment isolation - Resource Context enables per-environment cost tracking

Next Steps

Last updated