Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

aws-rds

БесплатноБез исполняемых скриптовНе проверен

Amazon RDS is AWS's managed relational database service: it provisions MySQL, PostgreSQL, MariaDB, Oracle, SQL Server and Aurora databases and handles…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub16 установок в других каталогах

Об этом скилле

AWS RDS

Overview

Amazon Relational Database Service (RDS) runs MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, Db2 and Aurora (MySQL- and PostgreSQL-compatible) for you: provisioning, patching, backups and failover. This skill covers the AWS CLI flow. All flags below were checked against the AWS CLI RDS reference (botocore 1.43); the commands were not run against a live account (flag parsing only), so try them in a sandbox account first.

Core terms: a DB instance is one database server; Multi-AZ keeps a synchronous standby in another Availability Zone; a read replica is an asynchronous copy for read scaling or DR; a DB subnet group lists the subnets RDS may use; a parameter group holds engine settings; an Aurora cluster has one writer and up to 15 readers on shared storage.

Instructions

  1. Pick an engine version that RDS currently supports rather than copying one from a tutorial. List the default and available versions:
    aws rds describe-db-engine-versions --engine postgres --default-only \
      --query 'DBEngineVersions[].EngineVersion' --output text
    
    Check the RDS release calendar for end-of-standard-support dates; running past them triggers paid Extended Support (PostgreSQL 14 ends standard support on 2027-02-28, 15 on 2028-02-29, 16 on 2029-02-28, 17 on 2030-02-28).
  2. Create a DB subnet group from private subnets in at least two AZs, then the instance or cluster with --no-publicly-accessible, --storage-encrypted, --deletion-protection and a backup retention of 7 days or more.
  3. Let RDS own the master password with --manage-master-user-password; it stores and rotates the secret in Secrets Manager (--master-user-secret-kms-key-id picks the key). It cannot be combined with --master-user-password. Read the secret ARN from MasterUserSecret.SecretArn in describe-db-instances.
  4. Restore operations always create a new instance; point the application at the new endpoint, never overwrite the old one.
  5. Parameter changes: ApplyMethod=immediate works only for dynamic parameters; static ones need pending-reboot and a reboot.

Examples

Production PostgreSQL instance with Multi-AZ

aws rds create-db-subnet-group \
  --db-subnet-group-name orders-db-subnets \
  --db-subnet-group-description "Private subnets for the orders database" \
  --subnet-ids subnet-0a1b2c3d4e5f60001 subnet-0a1b2c3d4e5f60002

aws rds create-db-instance \
  --db-instance-identifier orders-db-prod \
  --db-instance-class db.r6g.large \
  --engine postgres \
  --master-username orders_admin \
  --manage-master-user-password \
  --allocated-storage 100 --storage-type gp3 \
  --multi-az --no-publicly-accessible \
  --db-subnet-group-name orders-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 --deletion-protection \
  --tags Key=Env,Value=prod

Omitting --engine-version uses the current default; pin it (from step 1) when you need reproducible builds. Wait for available with aws rds wait db-instance-available --db-instance-identifier orders-db-prod.

Aurora PostgreSQL Serverless v2 cluster

aws rds create-db-cluster \
  --db-cluster-identifier orders-aurora-prod \
  --engine aurora-postgresql \
  --master-username orders_admin --manage-master-user-password \
  --db-subnet-group-name orders-db-subnets \
  --vpc-security-group-ids sg-0123456789abcdef0 \
  --backup-retention-period 14 --storage-encrypted --deletion-protection \
  --serverless-v2-scaling-configuration MinCapacity=0.5,MaxCapacity=16

aws rds create-db-instance --db-instance-identifier orders-aurora-writer \
  --db-instance-class db.serverless --engine aurora-postgresql \
  --db-cluster-identifier orders-aurora-prod

Add a second db.serverless instance in the same cluster as a reader. For dev clusters set MinCapacity=0,SecondsUntilAutoPause=900 (5 minutes to 1 day); the instance pauses with no connections and resumes on the next one, at the cost of a slow first connection. Auto-pause needs an Aurora engine version that supports a minimum of 0 ACUs.

Replicas, snapshots and recovery

# Same-region read replica
aws rds create-db-instance-read-replica \
  --db-instance-identifier orders-db-read-1 \
  --source-db-instance-identifier orders-db-prod

# Cross-region replica for DR (run against the destination region; an encrypted source needs --source-region
# so the CLI builds the presigned URL, and a KMS key in the destination region)
aws rds create-db-instance-read-replica --region eu-west-1 --source-region us-east-1 \
  --db-instance-identifier orders-db-read-eu \
  --source-db-instance-identifier arn:aws:rds:us-east-1:111122223333:db:orders-db-prod \
  --kms-key-id alias/aws/rds \
  --db-subnet-group-name orders-db-subnets-eu   # a subnet group you created in eu-west-1; without one the re
Полный SKILL.md на GitHub

Установить aws-rds в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл aws-rds?

Amazon RDS is AWS's managed relational database service: it provisions MySQL, PostgreSQL, MariaDB, Oracle, SQL Server and Aurora databases and handles backups, patching and failover. Use this skill with the AWS CLI to create a Multi-AZ instance, an Aurora Serverless v2 cluster, read replicas, snapshots and point-in-time restores, parameter groups, and Secrets Manager-managed passwords, or when the user asks how to set up, back up, scale or monitor a database on RDS.

Как установить скилл aws-rds?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aws-rds запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aws-rds с