AgentSkillsCN

aws-cli-rds

在使用AWS RDS命令时——数据库实例、集群(Aurora)、快照、参数组、子网组、只读副本、自动备份、事件订阅。在创建或管理RDS数据库实例(MySQL、PostgreSQL、MariaDB、Oracle、SQL Server)、创建或管理Aurora数据库集群、拍摄与恢复快照、配置参数组与选项组、设置数据库子网组、创建只读副本、管理自动备份与时间点恢复、配置事件订阅,或管理RDS Proxy时使用此技能。

SKILL.md
--- frontmatter
name: aws-cli-rds
description: Use when working with AWS RDS commands — DB instances, clusters (Aurora), snapshots, parameter groups, subnet groups, read replicas, automated backups, event subscriptions. Use this skill when creating or managing RDS DB instances (MySQL, PostgreSQL, MariaDB, Oracle, SQL Server), creating or managing Aurora DB clusters, taking and restoring snapshots, configuring parameter groups and option groups, setting up DB subnet groups, creating read replicas, managing automated backups and point-in-time recovery, configuring event subscriptions, or managing RDS Proxy.

AWS CLI v2 — RDS (Relational Database Service)

Overview

Complete reference for all aws rds subcommands in AWS CLI v2. Covers DB instance lifecycle, Aurora clusters, snapshots, parameter groups, subnet groups, read replicas, automated backups, security, monitoring, and event subscriptions.

Quick Reference — Common Workflows

Create a DB instance

bash
aws rds create-db-instance --db-instance-identifier my-db \
  --db-instance-class db.t3.medium --engine postgres \
  --master-username admin --master-user-password secret \
  --allocated-storage 20 --vpc-security-group-ids sg-xxx \
  --db-subnet-group-name my-subnet-group

Create an Aurora cluster

bash
aws rds create-db-cluster --db-cluster-identifier my-aurora \
  --engine aurora-postgresql --master-username admin \
  --master-user-password secret --vpc-security-group-ids sg-xxx \
  --db-subnet-group-name my-subnet-group
aws rds create-db-instance --db-instance-identifier my-aurora-instance-1 \
  --db-cluster-identifier my-aurora --db-instance-class db.r6g.large \
  --engine aurora-postgresql

Take a snapshot

bash
aws rds create-db-snapshot --db-instance-identifier my-db --db-snapshot-identifier my-snap
aws rds wait db-snapshot-available --db-snapshot-identifier my-snap

Create read replica

bash
aws rds create-db-instance-read-replica --db-instance-identifier my-replica \
  --source-db-instance-identifier my-db --db-instance-class db.t3.medium

Modify instance (apply immediately)

bash
aws rds modify-db-instance --db-instance-identifier my-db \
  --db-instance-class db.t3.large --apply-immediately
aws rds wait db-instance-available --db-instance-identifier my-db

Covered Command Groups

GroupCommandsDescription
DB Instancescreate, delete, describe, modify, reboot, start, stopInstance lifecycle
DB Clusterscreate, delete, describe, modify, failover, start, stopAurora clusters
Snapshotscreate, delete, describe, copy, restore, shareInstance & cluster snapshots
Parameter Groupscreate, delete, describe, modify, resetEngine configuration
Subnet Groupscreate, delete, describe, modifyVPC networking
Option Groupscreate, delete, describe, modify, copyEngine-specific features
Event Subscriptionscreate, delete, describe, modifySNS notifications
Automated Backupsdescribe, delete, start/stop replicationBackup management
Proxiescreate, delete, describe, modifyRDS Proxy

Command Reference

See references/index.md for the quick reference table and global options.

GroupFileCommands
DB Instancesdb-instances.mdcreate-db-instance, delete-db-instance, describe-db-instances, modify-db-instance, reboot-db-instance, start-db-instance, stop-db-instance, create-db-instance-read-replica, promote-read-replica
DB Clusters (Aurora)db-clusters.mdcreate-db-cluster, delete-db-cluster, describe-db-clusters, modify-db-cluster, failover-db-cluster, start-db-cluster, stop-db-cluster, create-db-cluster-endpoint, describe-db-cluster-endpoints, modify-db-cluster-endpoint, delete-db-cluster-endpoint
Snapshotssnapshots.mdcreate-db-snapshot, delete-db-snapshot, describe-db-snapshots, copy-db-snapshot, restore-db-instance-from-db-snapshot, modify-db-snapshot, create-db-cluster-snapshot, delete-db-cluster-snapshot, describe-db-cluster-snapshots, copy-db-cluster-snapshot, restore-db-cluster-from-snapshot
Parameter Groupsparameter-groups.mdcreate-db-parameter-group, delete-db-parameter-group, describe-db-parameter-groups, describe-db-parameters, modify-db-parameter-group, reset-db-parameter-group, create-db-cluster-parameter-group, delete-db-cluster-parameter-group, describe-db-cluster-parameter-groups, describe-db-cluster-parameters, modify-db-cluster-parameter-group, reset-db-cluster-parameter-group
Subnet Groupssubnet-groups.mdcreate-db-subnet-group, delete-db-subnet-group, describe-db-subnet-groups, modify-db-subnet-group
Option Groupsoption-groups.mdcreate-option-group, delete-option-group, describe-option-groups, describe-option-group-options, modify-option-group, copy-option-group
Event Subscriptionsevent-subscriptions.mdcreate-event-subscription, delete-event-subscription, describe-event-subscriptions, modify-event-subscription, describe-events, describe-event-categories
Automated Backupsautomated-backups.mddescribe-db-instance-automated-backups, delete-db-instance-automated-backup, start-db-instance-automated-backups-replication, stop-db-instance-automated-backups-replication
RDS Proxyrds-proxy.mdcreate-db-proxy, delete-db-proxy, describe-db-proxies, modify-db-proxy, register-db-proxy-targets, deregister-db-proxy-targets, describe-db-proxy-targets, describe-db-proxy-target-groups
Tagstags.mdadd-tags-to-resource, remove-tags-from-resource, list-tags-for-resource
Maintenance & Engine Infomaintenance-engine-info.mddescribe-pending-maintenance-actions, apply-pending-maintenance-action, describe-db-engine-versions, describe-orderable-db-instance-options, describe-certificates