Cloud & GCP Engineer Guide: FinOps Cloud Cost Optimization on AWS & Google Cloud

Unchecked cloud spend rarely comes from a single massive database; it accumulates silently through AWS NAT Gateway data processing fees ($0.045/GB), idle public IPv4 addresses ($0.005/hr per subnet/ENI), unpartitioned BigQuery full-table scans, and over-provisioned Kubernetes/ECS node groups. As a cloud engineer and GCP engineer, I execute engineering-led FinOps audits that reduce monthly AWS and Google Cloud Platform bills by 30%–55% through architectural remediation in Terraform rather than spreadsheets.

1. Eliminating NAT Gateway & Public IPv4 Bleed on AWS

When private ECS tasks or EC2 workers pull container images from ECR, read objects from S3, or write items to DynamoDB through a Managed NAT Gateway, AWS charges $0.045 per gigabyte processed. Provisioning free Gateway VPC Endpoints for S3 and DynamoDB alongside Interface Endpoints or dynamic ALB subnet pruning immediately eliminates this tax:

# terraform/vpc_endpoints.tf
resource "aws_vpc_endpoint" "s3_gateway" {
  vpc_id            = aws_vpc.production.id
  service_name      = "com.amazonaws.${var.aws_region}.s3"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = aws_route_table.private[*].id
}

resource "aws_vpc_endpoint" "dynamodb_gateway" {
  vpc_id            = aws_vpc.production.id
  service_name      = "com.amazonaws.${var.aws_region}.dynamodb"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = aws_route_table.private[*].id
}

2. BigQuery Partition Filters & Physical Storage Billing on GCP

On Google Cloud, switching datasets with high compression ratios from logical billing to PHYSICAL active/long-term storage billing—and enforcing require_partition_filter = true on every multi-terabyte event table—prevents a single unindexed Looker Studio dashboard query from scanning $120 of historical data per page refresh:

ALTER SCHEMA `prod-analytics.telemetry_mart`
SET OPTIONS (
  storage_billing_model = 'PHYSICAL'
);

ALTER TABLE `prod-analytics.telemetry_mart.http_access_logs`
SET OPTIONS (
  require_partition_filter = true,
  partition_expiration_days = 365
);

3. Related Cloud & GCP FinOps Engineering Resources


About the Author — Hire Aldian Fazrihady (Cloud Engineer, GCP Professional Cloud Architect, GCP Professional Data Engineer, Backend, AI & Full Stack Engineer)

Aldian Fazrihady is a Top-Rated Senior Cloud Engineer, GCP Professional Cloud Architect (Google Cloud Certified), GCP Professional Data Engineer (Google Cloud Certified), Backend Engineer (Python, Django, FastAPI, Go, PostgreSQL), AI Application Engineer (LLMs, RAG, MCP, Google ADK, LangGraph), and Full Stack Engineer (React, Next.js, TypeScript) with 15+ years of production software engineering experience.

Hire Aldian Fazrihady on Upwork | Book 1-Day Programming Service ($100 USD / Rp 1.000.000) | View Live AI Portfolio | Send a Direct Message

Related Engineering Articles

Engineering Role Pillar Guides & Category Hubs