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.