Amazon Relational Database Service (RDS) is a managed relational database service provided by Amazon Web Services (AWS). It simplifies the setup, operation, and scaling of relational databases in the cloud.
Useful AWS RDS CLI Commands:
Create a DB Instance:
aws rds create-db-instance –db-instance-identifier <identifier> –db-instance-class <class> –engine <engine> –master-username <username> –master-user-password <password> –allocated-storage <size>
Delete a DB Instance:
aws rds delete-db-instance –db-instance-identifier <identifier> –skip-final-snapshot
Modify a DB Instance:
aws rds modify-db-instance –db-instance-identifier <identifier> –apply-immediately –db-instance-class <new-class>
Describe DB Instances:
aws rds describe-db-instances –db-instance-identifier <identifier>
Reboot a DB Instance:
aws rds reboot-db-instance –db-instance-identifier <identifier>
Create a DB Snapshot:
aws rds create-db-snapshot –db-snapshot-identifier <snapshot-identifier> –db-instance-identifier <instance-identifier>
Describe DB Snapshots:
aws rds describe-db-snapshots –db-snapshot-identifier <snapshot-identifier>
Restore DB Instance from Snapshot:
aws rds restore-db-instance-from-db-snapshot –db-instance-identifier <new-instance-identifier> –db-snapshot-identifier <snapshot-identifier>
Create a Read Replica:
aws rds create-db-instance-read-replica –db-instance-identifier <replica-identifier> –source-db-instance-identifier <source-identifier>
Promote Read Replica:
aws rds promote-read-replica –db-instance-identifier <replica-identifier>
Read More and Learn More about AWS
Please follow and like us: