Aws Rds Database

aj-geddes/useful-ai-prompts/skills/aws-rds-database

作者 aj-geddes3f5182cfd739无许可证355 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7个月前更新

Deploy and manage relational databases using RDS with Multi-AZ, read replicas, backups, and encryption. Use for PostgreSQL, MySQL, MariaDB, and Oracle.

包含脚本DevOps & Cloud
AI 生成的概览

部署和管理 Amazon RDS 关系型数据库,支持多可用区、只读副本、备份和加密。

功能
该技能指导在 PostgreSQL、MySQL、MariaDB、Oracle 和 SQL Server 等引擎上部署和运维 Amazon RDS 关系型数据库。它提供 AWS CLI 和 Terraform 配置指南、连接与配置参考、一个架构校验脚本以及一个 SQL 迁移模板。内容涵盖多可用区高可用、只读副本、自动备份、加密和凭据管理。
适用场景
适用于在 Amazon RDS 上创建或运维关系型数据库的场景,包括事务型和 OLTP 工作负载、需要只读副本的读密集型应用,以及开发、预发布和灾难恢复环境。也适合需要备份、加密和 IAM 数据库身份验证指导的团队。
运行要求
需要具备 RDS、EC2 安全组及相关服务权限的 AWS 账户访问,以及用于文档所述流程的 AWS CLI 或 Terraform。该技能附带一个可执行脚本(scripts/validate-schema.sh)、参考文档和一个 SQL 迁移模板。

AWS RDS Database

Table of Contents

Overview

Amazon RDS simplifies relational database deployment and operations. Support multiple database engines with automated backups, replication, encryption, and high availability through Multi-AZ deployments.

When to Use

  • PostgreSQL and MySQL applications
  • Transactional databases and OLTP
  • Oracle and Microsoft SQL Server workloads
  • Read-heavy applications with replicas
  • Development and staging environments
  • Data requiring ACID compliance
  • Applications needing automatic backups
  • Disaster recovery scenarios

Quick Start

Minimal working example:

bash
# Create DB subnet groupaws rds create-db-subnet-group \  --db-subnet-group-name app-db-subnet \  --db-subnet-group-description "App database subnet" \  --subnet-ids subnet-12345 subnet-67890
# Create security group for RDSaws ec2 create-security-group \  --group-name rds-sg \  --description "RDS security group" \  --vpc-id vpc-12345
# Allow inbound PostgreSQLaws ec2 authorize-security-group-ingress \  --group-id sg-rds123 \  --protocol tcp \  --port 5432 \  --source-security-group-id sg-app123
# Create RDS instanceaws rds create-db-instance \  --db-instance-identifier myapp-db \  --db-instance-class db.t3.micro \  --engine postgres \  --engine-version 15.2 \// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
RDS Instance Creation with AWS CLI [blocked]RDS Instance Creation with AWS CLI
Terraform RDS Configuration [blocked]Terraform RDS Configuration
Database Connection and Configuration [blocked]Database Connection and Configuration

Best Practices

✅ DO

  • Use Multi-AZ for production
  • Enable automated backups
  • Use encryption at rest and in transit
  • Implement IAM database authentication
  • Create read replicas for scaling
  • Monitor performance metrics
  • Set up CloudWatch alarms
  • Store credentials in Secrets Manager
  • Use parameter groups for configuration

❌ DON'T

  • Store passwords in code
  • Disable encryption
  • Use public accessibility in production
  • Ignore backup retention
  • Skip automated backups
  • Create databases without Multi-AZ

来源与署名

来源:aj-geddes/useful-ai-prompts位于skills/aws-rds-database提交3f5182c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架