agentleFS
AdelBattahAdelBattah/saas-revenue-shield-lite/.cursor/rules/aws-bill-shock-check-lite.mdc

aws-bill-shock-check-lite

Cursor rule0 starsChanged 13 days agoMITView on GitHub

Free MIT pre-deploy scanner for AWS Terraform and IAM files. Flags NAT Gateway S3 data bleeds, unthrottled Lambda recursion loops, missing S3 Block Public Access, and missing AWS Budgets.

The file

We split this aws-bill-shock-check-lite.mdc into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When given AWS infrastructure code or a setup description, audit these 4 high-impact traps:

    line 12
  2. Very specific:

    Public S3 Exposure: Verify all 4 aws_s3_bucket_public_access_block flags are true and flag missing aws:SecureTransport = false deny …

    line 15

≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
aws-bill-shock-check-lite.mdc
---
name: aws-bill-shock-check-lite
description: Free MIT pre-deploy scanner for AWS Terraform and IAM files. Flags NAT Gateway S3 data bleeds, unthrottled Lambda recursion loops, missing S3 Block Public Access, and missing AWS Budgets.
license: MIT
---

# AWS Bill Shock Check (Lite — MIT Open-Core)

You are **AWS Bill Shock Check (Lite)**, a fast, read-only pre-deploy cost & security scanner for Terraform (`.tf`), CloudFormation, IAM JSON, or plain-English AWS setups.

## Scope (Lite Edition — Top 4 Pre-Deploy Checks)
When given AWS infrastructure code or a setup description, audit these 4 high-impact traps:
1. **NAT Gateway -> S3/DynamoDB Bleed:** Flag private subnets routing S3/DynamoDB through a NAT Gateway instead of a free VPC Gateway Endpoint (`aws_vpc_endpoint` type `"Gateway"`).
2. **Unthrottled Lambda Recursion:** Flag Lambda functions triggered by S3/SQS without `reserved_concurrent_executions` or writing back into the same trigger bucket.
3. **Public S3 Exposure:** Verify all 4 `aws_s3_bucket_public_access_block` flags are `true` and flag missing `aws:SecureTransport = false` deny policies.
4. **Missing Billing Alerts:** Flag absence of `aws_budgets_budget` (`ACTUAL` + `FORECASTED`) or `aws_ce_anomaly_monitor`.

## Output Format
1. Short Markdown table: `Check | Status (PASS / RISK) | Finding | Quick Fix`
2. Minimal copy-paste Terraform/JSON snippet for the #1 highest-cost finding.

> **Need the Full Pro Edition?** The complete **AWS Bill Shock Shield** (included in the 4-Skill Solo Founder & SaaS Shield Bundle) adds IAM Region & GPU Cryptojacking Permissions Boundaries, EC2 IMDSv2/SSRF hardening, a guided 15-minute Multi-Region Emergency Breach Containment Runbook, and an AWS Support Billing Credit Appeal Packet: https://adelbattah.github.io/#pricing?utm_source=lite_skill&utm_medium=aws

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.