aws

aws is a cursor rule for coding agents from nedcodes-ok/cursorrules-collection. It costs 447 tokens per session, scanned A, original, MIT.

Rules for designing applications on AWS, Amazon's cloud platform. They cover permissions, serverless functions, networking, storage, and common AWS services.

In plain words
What is it for?
Use it to plan IAM permissions, Lambda and API Gateway services, SQS messaging, VPC networks, S3 storage, and DynamoDB data models.
Why use it?
They help avoid overly broad access, exposed infrastructure, hard-coded credentials, inefficient networking, and fragile service-to-service designs. The guidance also addresses deployment and operational concerns.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/nedcodes-ok/cursorrules-collection/aws
Clone the repo
git clone --depth 1 https://github.com/nedcodes-ok/cursorrules-collection

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aws

README.md
[![agentmods](https://agentmods.dev/badge/rules/nedcodes-ok/cursorrules-collection/aws.svg)](https://agentmods.dev/rules/nedcodes-ok/cursorrules-collection/aws)
Your own site
<a href="https://agentmods.dev/rules/nedcodes-ok/cursorrules-collection/aws"><img src="https://agentmods.dev/badge/rules/nedcodes-ok/cursorrules-collection/aws.svg" alt="Measured on agentmods" height="20"></a>
Per session 447 This file is loaded in full into every session.
When invoked 447 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00447 $0.00447
Opus 5 $0.00224 $0.00224
Sonnet 5 $0.00089 $0.00089
Haiku 4.5 $0.00045 $0.00045

Measured yesterday against content hash 4b5e6aa6840b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aws scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules-mdc/tools/aws.mdc · 50 lines

What it actually says

AWS Cursor Rules

You are an expert AWS cloud architect. Follow these rules:

IAM

  • Least privilege: start with zero permissions, add as needed
  • Never use root account or access keys for root
  • IAM roles over long-lived access keys — everywhere
  • Use policy conditions: restrict by source IP, MFA, resource tags
  • Service-linked roles for AWS service integrations

Serverless

  • Lambda: single-purpose functions, under 15 seconds
  • Cold starts: keep Lambda deployment packages small, use layers
  • API Gateway with Lambda proxy for HTTP APIs
  • Use Lambda Powertools for logging, tracing, and metrics
  • SQS between services for async decoupling — never direct Lambda-to-Lambda
  • DynamoDB for serverless state — design single-table when possible

Networking

  • Private subnets for compute, public only for load balancers
  • VPC endpoints for S3, DynamoDB, and other AWS services — avoid NAT costs
  • Security groups: whitelist specific ports, no 0.0.0.0/0 ingress
  • Use AWS PrivateLink for cross-account service access

Storage

  • S3 lifecycle policies: transition to Glacier/IA for old data
  • S3 bucket policies: block public access by default
  • EBS: gp3 over gp2 — same price, better performance
  • Use presigned URLs for temporary S3 access from clients

Reliability

  • Multi-AZ for all stateful services (RDS, ElastiCache)
  • Auto Scaling groups with health checks for compute
  • CloudWatch alarms for error rates, latency P99, and saturation
  • Route 53 health checks for DNS failover

Cost

  • Tag everything: team, environment, project — enables cost allocation
  • Reserved capacity or Savings Plans for steady-state workloads
  • Spot instances for fault-tolerant batch processing
  • Review Cost Explorer weekly — catch surprises early
  • Delete unused EBS volumes, old snapshots, idle load balancers
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 50 lines · 447 tokens per session scan A 4b5e6aa6840b

Subscribe to this mod's changes

aws is a cursor rule published in the GitHub repository nedcodes-ok/cursorrules-collection (37 stars, last pushed 6mo ago), licensed MIT. It adds 447 tokens to every session, about $0.0022 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.