towardsthecloud / towardsthecloud/cloudburn

Add data transfer cost guardrail rules

Open
#110 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
1.8k
Forks
371
Avg merge
4h 32m
Merged PRs (30d)
63

Description

What

First rules targeting data transfer spend: (1) VPCs running a NAT gateway without free S3/DynamoDB gateway endpoints (IaC + discovery); (2) NAT gateways with high data-processing charges (discovery).

Why

Data transfer is routinely a top-3 AWS bill line item and CloudBurn has no coverage today. Routing S3/DynamoDB traffic through NAT at $0.045/GB when gateway endpoints are free is one of the most common and most fixable AWS cost mistakes.

Details

  • Rule 1: for each VPC with a NAT gateway, check for com.amazonaws.<region>.s3 / dynamodb gateway endpoints. Static evaluation over Terraform + CloudFormation resources and live evaluation both work; complements CLDBRN-AWS-EC2-2 (interface-vs-gateway endpoint) which assumes an endpoint already exists.
  • Rule 2: NAT gateway BytesOutToDestination/processing volume above a threshold over the lookback window — complements CLDBRN-AWS-EC2-11 (idle NAT) at the opposite end of the usage curve, reusing the same CloudWatch dataset pattern.
  • Lives in the ec2 module alongside the existing NAT/endpoint rules.
  • Per repo policy, static coverage must be tested against both Terraform and CloudFormation inputs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the ec2 module by reading the existing NAT and endpoint rules, especially CLDBRN-AWS-EC2-2 and CLDBRN-AWS-EC2-11, then review the CloudWatch dataset pattern. Done means both VPC endpoint and high-NAT-processing rules support the stated static or live evaluations, with static coverage tested against Terraform and CloudFormation inputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, terraform, typescript
Domain
cloud, devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.