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 從公開儲存庫中收錄這些內容。

檢舉或申請下架