← 返回命令列表

Linux command

aws-rds 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

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

List all database instances

aws rds describe-db-instances

Describe a specific instance

aws rds describe-db-instances --db-instance-identifier [my-db]

Create a manual snapshot

aws rds create-db-snapshot --db-instance-identifier [my-db] --db-snapshot-identifier [my-snapshot]

Restore from a snapshot

aws rds restore-db-instance-from-db-snapshot --db-instance-identifier [new-db] --db-snapshot-identifier [my-snapshot]

Modify instance

aws rds modify-db-instance --db-instance-identifier [my-db] --db-instance-class db.t3.small --apply-immediately

Create a read replica

aws rds create-db-instance-read-replica --db-instance-identifier [my-replica] --source-db-instance-identifier [my-db]

Delete an instance

aws rds delete-db-instance --db-instance-identifier [my-db] --skip-final-snapshot

说明

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.

FAQ

What is the aws-rds command used for?

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.

How do I run a basic aws-rds example?

Run `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` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more aws-rds examples?

This page includes 8 examples for aws-rds, plus related commands for nearby Linux tasks.