aws-rds
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "aws-rds":https://skillpi.com/zh/skills/deepskill-1811e36286637e65e7afbd242d6614068d2d77a32dd874bbcaea67256157da84。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
管理 Amazon RDS,提供完全托管的关系型数据库服务。配置 MySQL、PostgreSQL 和 Aurora 实例,支持自动备份与补丁更新,设置只读副本以实现扩展,使用快照进行恢复,并为可变工作负载配置 Aurora Serverless。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: aws-rds
description: |
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.
license: Apache-2.0
compatibility: 'aws-cli, boto3, terraform'
metadata:
author: terminal-skills
version: 1.0.0
category: devops
tags:
- aws
- rds
- database
- aurora
- postgresqlAWS 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
# 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
# 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
# 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
# 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
# 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
# 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
# Promote replica to standalone (for migration or DR)
aws rds promote-read-replica --db-instance-identifier app-db-read-eu
Snapshots and Recovery
# 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)
# 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
# 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
# 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
# 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"
# 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
# Enable Performance Insights
aws rds modify-db-instance \
--db-instance-identifier app-db-prod \
--enable-performance-insights \
--performance-insights-retention-period 7
# 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
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的 AWS RDS 管理能力,涵盖实例创建、集群配置、备份恢复等核心功能
- 面向 DevOps 和云架构师,解决实际生产环境数据库管理需求
- 支持多种数据库引擎(MySQL、PostgreSQL、Aurora)和高级特性(Serverless、Multi-AZ)
亮点
- description 清晰描述核心功能边界,覆盖 AWS RDS 全生命周期管理
- 包含明确的兼容性声明和技术栈信息
- 触发词精准,不易与其他 Skill 混淆
亮点
- 文档结构清晰,按功能模块合理划分章节
- 每个操作都有完整的代码示例和参数说明
- frontmatter 完整,包含必要的元数据和标签
亮点
- 所有命令使用标准 AWS CLI 语法,参数完整正确
- 包含安全最佳实践(如密码自动生成、加密存储)
- 覆盖故障恢复、跨区域复制等重要场景
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 201 行 -
云资源与可能的费用
先预览变更,核对账号、区域、资源权限与费用;创建、部署或删除前单独确认。
主文档提及 · 第 39, 47, 70, 85, 91 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。