LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aws-rds

Manage relational database instances

TLDR

Create a MySQL database instance
$ aws rds create-db-instance --db-instance-identifier [my-db] --db-instance-class db.t3.micro --engine mysql --master-username admin --master-user-password [password] --allocated-storage 20
copy
List all database instances
$ aws rds describe-db-instances
copy
Describe a specific instance
$ aws rds describe-db-instances --db-instance-identifier [my-db]
copy
Create a manual snapshot
$ aws rds create-db-snapshot --db-instance-identifier [my-db] --db-snapshot-identifier [my-snapshot]
copy
Restore from a snapshot
$ aws rds restore-db-instance-from-db-snapshot --db-instance-identifier [new-db] --db-snapshot-identifier [my-snapshot]
copy
Modify instance (resize, change settings)
$ aws rds modify-db-instance --db-instance-identifier [my-db] --db-instance-class db.t3.small --apply-immediately
copy
Create a read replica
$ aws rds create-db-instance-read-replica --db-instance-identifier [my-replica] --source-db-instance-identifier [my-db]
copy
Delete an instance (skip final snapshot)
$ aws rds delete-db-instance --db-instance-identifier [my-db] --skip-final-snapshot
copy

SYNOPSIS

aws rds command [options]

DESCRIPTION

aws rds is the AWS CLI interface for Amazon Relational Database Service (RDS), a managed service for relational databases. RDS handles provisioning, patching, backups, and recovery for MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, and Amazon Aurora.RDS provides automated backups, point-in-time recovery, read replicas for scaling, Multi-AZ deployments for high availability, and encryption at rest. Aurora extends RDS with MySQL and PostgreSQL-compatible databases with enhanced performance.

COMMANDS

create-db-instance

Create a new database instance
delete-db-instance
Terminate a database instance
describe-db-instances
List and describe instances
modify-db-instance
Change instance configuration
reboot-db-instance
Restart a database instance
start-db-instance
Start a stopped instance
stop-db-instance
Stop a running instance
create-db-snapshot
Create a manual backup
restore-db-instance-from-db-snapshot
Restore from backup
create-db-instance-read-replica
Create a read replica
create-db-cluster
Create an Aurora cluster
describe-db-snapshots
List and describe snapshots
delete-db-snapshot
Delete a manual snapshot
failover-db-cluster
Trigger Aurora failover
add-tags-to-resource
Tag an RDS resource

INSTALL

sudo dnf install aws
copy
sudo pacman -S aws-cli
copy
sudo apk add aws-cli
copy
sudo zypper install aws-cli
copy

CAVEATS

Instance modifications may cause brief downtime unless Multi-AZ is enabled. Storage can only be increased, not decreased. Some engine versions cannot be downgraded. Final snapshots are recommended before deletion but incur storage costs.

HISTORY

Amazon RDS launched in October 2009 with MySQL support. PostgreSQL was added in 2013, Aurora in 2014. Multi-AZ deployments, read replicas, and encryption options have expanded over time. Blue/Green deployments for zero-downtime upgrades launched in 2022.

SEE ALSO

aws(1), aws-aurora(1), mysql(1), psql(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid