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
);