rds-aurora
Deep-dive into Amazon RDS and Aurora database design, engine selection, high availability, and operations. This skill should be used when the user asks to "design an RDS database", "choose between RDS and Aurora", "configure Aurora Serverless", "set up read replicas", "plan a database migration", "configure RDS Proxy", "tune database parameters", "set up Multi-AZ", "plan blue/green deployments", or mentions RDS, Aurora, Aurora Serverless v2, database failover, or relational database design on AWS.
What this skill does
Specialist guidance for Amazon RDS and Aurora. Covers engine selection, instance sizing, high availability, read scaling, security, migration, and operational best practices. ## Process 1. Identify the workload characteristics: read/write ratio, latency requirements, data volume, connection count 2. Use the `awsknowledge` MCP tools (`mcp__plugin_aws-dev-toolkit_awsknowledge__aws___search_documentation`, `mcp__plugin_aws-dev-toolkit_awsknowledge__aws___read_documentation`, `mcp__plugin_aws-dev-toolkit_awsknowledge__aws___recommend`) to verify current RDS/Aurora limits, engine versions, and features 3. Select the appropriate engine and deployment model (RDS single-instance, RDS Multi-AZ, Aurora provisioned, Aurora Serverless v2) 4. Design the high availability and read scaling topology 5. Configure security (encryption, IAM auth, network isolation) 6. Recommend operational best practices (backups, monitoring, maintenance) ## Engine Selection Decision Matrix | Requirement | Recommendation | Why | |---|---|---| | MySQL/PostgreSQL, predictable workload, cost-sensitive | RDS for MySQL/PostgreSQL | Simpler, cheaper for small-medium workloads | | MySQL/PostgreSQL, high availability, auto-scaling storage | Aurora (MySQL/PostgreSQL) | 6-way replicated storage, up to 128 TB auto-grow | | Spiky or unpredictable traffic | Aurora Serverless v2 | Scales ACUs in 0.5 increments, optional scale-to-zero support | | Oracle or SQL Server licensing | RDS for Oracle / SQL Server | Only option for these engines on managed AWS | | Very small dev/test database | RDS with `db.t4g.micro` or Aurora Serverless v2 min 0.5 ACU | Lowest cost entry points | | High write throughput, global | Aurora Global Database | Sub-second cross-region replication, write forwarding | | Existing on-prem PostgreSQL migration | Aurora PostgreSQL + DMS | Wire-compatible, minimal app changes | ## Aurora vs RDS — Key Differences ### Storage Architecture - **RDS**: EBS-backed (gp3 or io2), single-AZ storage unless Multi-AZ - **Aurora**: Distributed storage layer, 6 copies across 3 AZs, auto-heals, auto-grows to 128 TB - Aurora survives loss of 2 copies for writes, 3 for reads — without manual intervention ### Replication - **RDS**: Async read replicas (up to 15 for MySQL, 5 for PostgreSQL), separate storage per replica - **Aurora**: Up to 15 read replicas sharing the same storage volume — replica lag typically <20ms, often <10ms - Aurora replicas can be failover targets with no data loss (same storage) ### Failover - **RDS Multi-AZ**: 60-120 second failover to synchronous standby - **Aurora**: Typically <30 second failover to a read replica (promoted in-place) - Aurora supports failover priority tiers (0-15) to control which replica gets promoted ### Cost Comparison - Aurora instances cost ~20% more than equivalent RDS instances - Aurora eliminates separate EBS costs — storage is included in the Aurora pricing model - For read-heavy workloads, Aurora's shared storage makes replicas cheaper (no storage duplication) - Aurora Serverless v2 can be more cost-effective for variable workloads than provisioned instances sitting idle ## Aurora Serverless v2 - Scales in 0.5 ACU increments (1 ACU ≈ 2 GiB RAM + proportional CPU) - Minimum: 0.5 ACU; Maximum: 256 ACU per instance - Scales based on CPU, connections, and memory pressure — not request count - Can mix Serverless v2 and provisioned instances in the same cluster - Recommended pattern: Serverless v2 reader for variable read traffic, provisioned writer for consistent write load ### When to Use Serverless v2 - Development and staging environments - Applications with idle periods (nights, weekends) - Spiky read workloads (reporting, batch queries) - New applications where traffic patterns are unknown ### When to Avoid Serverless v2 - Sustained high-throughput production writers — provisioned is cheaper at steady state - Latency-sensitive workloads during scale-up (scaling from minimum takes seconds, not instant) ## High Availability Configurations ### RDS Multi-AZ (Instance) - Synchronous standby in a different AZ — automatic failover - Standby is not readable (unlike Aurora replicas) - Use for: production databases that need simple HA without read scaling ### RDS Multi-AZ (Cluster) — db.r6gd Only - One writer + two readable standbys across 3 AZs - Uses local NVMe + synchronous replication - Sub-35-second failover - Limited to specific instance classes ### Aurora Multi-AZ - Create at least one read replica in a different AZ for HA - All replicas share storage, so failover has zero data loss - For production: minimum 2 replicas across 2 AZs (writer + 2 readers = 3 AZs) ### Aurora Global Database - Cross-region replication with <1 second typical lag - Managed RPO/RTO with automated failover - Write forwarding lets readers in secondary regions redirect writes to the primary - Use for: disaster recovery, low-latency global reads ## RDS Proxy - Fully managed connection pooler sitting between applications and the database - Multiplexes thousands of application connections to a smaller pool of database connections - Reduces failover time by maintaining open connections to standby - Essential for Lambda → RDS/Aurora (Lambda creates many short-lived connections) ### When to Use RDS Proxy - Lambda functions connecting to RDS/Aurora (connection exhaustion risk) - Applications with many short-lived connections - Reducing failover disruption (proxy pins to new primary automatically) ### When to Skip RDS Proxy - Applications with persistent connection pools (like traditional app servers with HikariCP/pgBouncer) - Workloads requiring session-level features (prepared statements, temp tables — proxy may pin connections) ## Security ### Encryption - **At rest**: Enable at creation time (cannot be enabled later without snapshot-restore). Use AWS KMS CMK for key control. - **In transit**: Enforce SSL via parameter group (`rds.force_ssl = 1` for PostgreSQL, `require_secure_transport = ON` for MySQL) ### Network Isolation - Deploy in private subnets only — never assign a public IP - Use security groups to restrict ingress to application subnets - Use VPC endpoints for API calls (`rds` and `rds-data` endpoints) ### Authentication - **IAM database authentication**: Token-based, no passwords stored — good for Lambda and automated access - **Secrets Manager rotation**: Automatic password rotation on a schedule — use for traditional username/password auth - **Kerberos/Active Directory**: Available for SQL Server and Oracle via AWS Directory Service ## Blue/Green Deployments - Create a "green" copy of the production database with changes applied (engine upgrade, parameter changes, schema changes) - RDS keeps the green environment in sync via logical replication - Switchover takes ~1 minute with minimal downtime - Automatic rollback if health checks fail ### Supported Changes - Major engine version upgrades - Parameter group changes - Schema changes on the green environment - Instance class changes ### Limitations - Not available for Aurora Serverless v1 (v2 supported) - Requires enough capacity for both environments during the transition ## Backup and Recovery ### Automated Backups - Default retention: 7 days (configurable 0-35 days; 0 disables) - Point-in-time recovery (PITR) to any second within the retention window - Backups are stored in S3 (managed by AWS, not visible in your bucket) ### Manual Snapshots - Persist indefinitely until deleted - Can be shared cross-account or copied cross-region - Use for: pre-change safety nets, archival, cross-region DR ### Aurora Backtrack (MySQL only) - Rewind the database to a specific point in time without restore - Operates on the same cluster — much faster than PITR - Configure a backtrack window (up to 72 hours) - Use for: recovering from bad queries, accidental deletes ## Anti-Patterns - **Public subnets for databases.** Never place RDS/Aurora in a public subnet. Use private subnets and access through app
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.