aws-rds
Manage Amazon RDS for fully managed relational databases. Provision MySQL, PostgreSQL, and Aurora instances with automated backups and patching. Configure read replicas for scaling, snapshots for recovery, and Aurora Serverless for variable workloads.
What this skill does
# AWS RDS
Amazon Relational Database Service (RDS) takes care of provisioning, patching, backups, and failover for relational databases. Supports MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, and Amazon Aurora.
## Core Concepts
- **DB Instance** — an isolated database environment in the cloud
- **Multi-AZ** — synchronous standby replica in another AZ for high availability
- **Read Replica** — asynchronous copy for read scaling
- **Parameter Group** — engine configuration settings
- **Subnet Group** — defines which subnets RDS can use
- **Aurora** — AWS-native engine, MySQL/PostgreSQL compatible, 5x faster
## Provisioning a Database
```bash
# Create a DB subnet group
aws rds create-db-subnet-group \
--db-subnet-group-name app-db-subnets \
--db-subnet-group-description "Private subnets for RDS" \
--subnet-ids subnet-aaa subnet-bbb subnet-ccc
```
```bash
# Launch a PostgreSQL instance with Multi-AZ
aws rds create-db-instance \
--db-instance-identifier app-db-prod \
--db-instance-class db.r6g.large \
--engine postgres \
--engine-version 15.4 \
--master-username appuser \
--master-user-password "$(aws secretsmanager get-random-password --password-length 32 --query RandomPassword --output text)" \
--allocated-storage 100 \
--storage-type gp3 \
--multi-az \
--db-subnet-group-name app-db-subnets \
--vpc-security-group-ids sg-0123456789abcdef0 \
--backup-retention-period 14 \
--preferred-backup-window "03:00-04:00" \
--preferred-maintenance-window "sun:05:00-sun:06:00" \
--storage-encrypted \
--tags Key=Env,Value=prod
```
## Aurora Cluster
```bash
# Create an Aurora PostgreSQL cluster
aws rds create-db-cluster \
--db-cluster-identifier app-aurora-prod \
--engine aurora-postgresql \
--engine-version 15.4 \
--master-username appuser \
--master-user-password "$DB_PASSWORD" \
--db-subnet-group-name app-db-subnets \
--vpc-security-group-ids sg-0123456789abcdef0 \
--backup-retention-period 14 \
--storage-encrypted \
--serverless-v2-scaling-configuration MinCapacity=0.5,MaxCapacity=16
```
```bash
# Add writer and reader instances to the cluster
aws rds create-db-instance \
--db-instance-identifier app-aurora-writer \
--db-instance-class db.serverless \
--engine aurora-postgresql \
--db-cluster-identifier app-aurora-prod
aws rds create-db-instance \
--db-instance-identifier app-aurora-reader \
--db-instance-class db.serverless \
--engine aurora-postgresql \
--db-cluster-identifier app-aurora-prod
```
## Read Replicas
```bash
# Create a read replica in same region
aws rds create-db-instance-read-replica \
--db-instance-identifier app-db-read-1 \
--source-db-instance-identifier app-db-prod \
--db-instance-class db.r6g.large
```
```bash
# Create cross-region read replica for DR
aws rds create-db-instance-read-replica \
--db-instance-identifier app-db-read-eu \
--source-db-instance-identifier arn:aws:rds:us-east-1:123456789:db:app-db-prod \
--db-instance-class db.r6g.large \
--region eu-west-1
```
```bash
# Promote replica to standalone (for migration or DR)
aws rds promote-read-replica --db-instance-identifier app-db-read-eu
```
## Snapshots and Recovery
```bash
# Create a manual snapshot
aws rds create-db-snapshot \
--db-instance-identifier app-db-prod \
--db-snapshot-identifier app-db-pre-migration-$(date +%Y%m%d)
```
```bash
# Restore from snapshot (creates a new instance)
aws rds restore-db-instance-from-db-snapshot \
--db-instance-identifier app-db-restored \
--db-snapshot-identifier app-db-pre-migration-20240115 \
--db-instance-class db.r6g.large \
--db-subnet-group-name app-db-subnets \
--vpc-security-group-ids sg-0123456789abcdef0
```
```bash
# Point-in-time recovery
aws rds restore-db-instance-to-point-in-time \
--source-db-instance-identifier app-db-prod \
--target-db-instance-identifier app-db-pitr \
--restore-time "2024-01-15T10:30:00Z" \
--db-instance-class db.r6g.large
```
```bash
# List automated snapshots
aws rds describe-db-snapshots \
--db-instance-identifier app-db-prod \
--snapshot-type automated \
--query 'DBSnapshots[].[DBSnapshotIdentifier,SnapshotCreateTime,Status]' \
--output table
```
## Parameter Groups
```bash
# Create custom parameter group
aws rds create-db-parameter-group \
--db-parameter-group-name app-postgres15 \
--db-parameter-group-family postgres15 \
--description "Custom params for app"
```
```bash
# Tune parameters for performance
aws rds modify-db-parameter-group \
--db-parameter-group-name app-postgres15 \
--parameters \
"ParameterName=shared_buffers,ParameterValue={DBInstanceClassMemory/4},ApplyMethod=pending-reboot" \
"ParameterName=max_connections,ParameterValue=200,ApplyMethod=pending-reboot" \
"ParameterName=log_min_duration_statement,ParameterValue=1000,ApplyMethod=immediate"
```
## Monitoring
```bash
# Enable Performance Insights
aws rds modify-db-instance \
--db-instance-identifier app-db-prod \
--enable-performance-insights \
--performance-insights-retention-period 7
```
```bash
# Check instance status and endpoints
aws rds describe-db-instances \
--db-instance-identifier app-db-prod \
--query 'DBInstances[0].[Endpoint.Address,DBInstanceStatus,AllocatedStorage,MultiAZ]' \
--output table
```
## Best Practices
- Always enable Multi-AZ for production databases
- Use Aurora Serverless v2 for unpredictable workloads
- Store credentials in AWS Secrets Manager with automatic rotation
- Set backup retention to at least 7 days; test restores periodically
- Use read replicas to offload reporting and analytics queries
- Enable Performance Insights and Enhanced Monitoring
- Use parameter groups to tune engine settings per workload
- Place RDS in private subnets; never expose to the public internet
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.