Here are some commonly used AWS RDS (Relational Database Service) commands using the AWS CLI, along with practical examples for each:
🔧 1. Create a New RDS Instance
📝 Creates a MySQL RDS instance with 20GB of storage.
🔍 2. Describe RDS Instances
📝 Lists all your RDS instances and their details.
🛑 3. Stop an RDS Instance (only supported for certain instance types)
📝 Stops a running instance to save costs (only for non-multi-AZ).
▶️ 4. Start a Stopped RDS Instance
📝 Starts an RDS instance previously stopped.
🚫 5. Delete an RDS Instance
📝 Deletes the RDS instance. Use --final-db-snapshot-identifier
if you want a backup.
💾 6. Create a Snapshot
📝 Creates a manual backup (snapshot) of your DB instance.
🔁 7. Restore from Snapshot
📝 Restores a new DB instance from a snapshot.
🛡️ 8. Modify DB Instance (e.g., instance class)
📝 Changes instance type and applies it immediately.
🌐 9. Create a Parameter Group
📝 Used to customize DB settings, like enabling slow query logs.
📄 10. List Snapshots
📝 Displays available snapshots you can restore from.