agentleFS
OpenThrottleOpenThrottle/monorepo/infra/AGENTS.md

monorepo / infra

AGENTS.md2 starsChanged 2 months agoApache-2.0View on GitHub

Terraform IaC for GCP (+ a Cloudflare module) — environment stacks and reusable modules. It is a registered Nx project (infra, tags type:infrastructure, technology:terraform, production:false) but has zero Nx targets: work with the Terraform CLI from an environment root, never pnpm nx run infra:*. There is no application bundle here. Consumed by: nothing in the dependency graph; CI validates it via .github/workflows/terraform-validate.yml on any infra/** change.

The file

We split this AGENTS.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    All gates are config-only (no plan/apply against live infra in CI).

    line 19

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md

infra — agent notes

Terraform IaC for GCP (+ a Cloudflare module) — environment stacks and reusable modules. It is a registered Nx project (infra, tags type:infrastructure, technology:terraform, production:false) but has zero Nx targets: work with the Terraform CLI from an environment root, never pnpm nx run infra:*. There is no application bundle here.

Consumed by: nothing in the dependency graph; CI validates it via .github/workflows/terraform-validate.yml on any infra/** change.

Layout

  • environments/ — one Terraform root per env (development/, staging/, production/), each with its own GCS state; envs set locals and call application modules.
  • applications/ — reusable app compositions (e.g. applications/openthrottle/) shared across environments.
  • modules/ — building blocks: cloudflare/, gcp_compute_e2/, gcp_memorystore_redis/, gcp_cloud_sql_postgres/ (OpenThrottle), gcp_cloud_sql_mysql/ (legacy).
  • tests/ — static CI gates: terraform fmt, terraform validate (-backend=false), tfsec, and Conftest/OPA policies.
  • gcp-estimate.csv — the GCP Pricing Calculator spec the modules are aligned to.

Invariants & gotchas

  • Environments must not inline app resources — they invoke ../../applications/<app> with env locals. Keep new resources in modules/applications.
  • New Terraform must pass the Rego policies in tests/policy/security.rego: no Cloud SQL ssl_mode = "ALLOW_UNENCRYPTED_AND_ENCRYPTED", no 0.0.0.0/0 in authorized_networks, state buckets versioned, uniform_bucket_level_access = true on all buckets.
  • All gates are config-only (no plan/apply against live infra in CI); applying requires local gcloud auth application-default login.

Pointers

  • README.md — setup, module/CSV mapping, connection outputs; environments/README.md, applications/README.md, tests/README.md.
  • docs/infra/ — GCS Nx cache, staging service account, notes/ideas.

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.