| Did this page help you? Yes No Tell us about it... |
Creates a DB Instance that acts as a Read Replica of a source DB Instance.
![]() | Note |
|---|---|
Read Replicas are only supported with the MySQL database engine. |
All Read Replica DB Instances are created as Single-AZ deployments with backups disabled. All other DB Instance attributes (including DB Security Groups and DB Parameter Groups) are inherited from the source DB Instance, except where specified otherwise.
rds-create-db-instance-read-replica
DBInstanceIdentifier -s
(--source-db-instance-identifier) value [-c
(--db-instance-class) value ] value ] value ] value ]
| Name | Description | Required |
|---|---|---|
|
|
DB Instance identifier of the Read Replica. This is the
unique key that identifies a DB Instance. This parameter is
stored as a lowercase string. This can also be passed as a named
parameter using Type: String Default: None Constraints:
Example: myinstance |
Yes |
|
|
The identifier of the DB Instance for which this DB Instance will act as a Read Replica. You can have up to 5 read replicas per DB Instance. Type: String Constraints:
|
Yes |
|
|
Contains the compute and memory capacity of the Read Replica. Type: String Default: Inherits from the source DB Instance. Different instance classes are available for different database engines.
For information about valid values for a particular engine, use the
Valid values: Example: |
No |
|
|
Port number that the Read Replica uses for connections. Type: Integer Default: Inherits from the source DB Instance Example: |
No |
|
|
Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window. Type: Boolean Default: Inherits from the source DB Instance Example: |
No |
|
|
The EC2 Availability Zone that the Read Replica will be created in. Type: String Default: A random, system-chosen Availability Zone in the same region as the current endpoint. Constraints: The Example: |
No |
The command returns a table that contains the following information:
DBInstanceIDThe user-supplied DB Instance identifier
CreatedThe data and time the instance was created, in 24-hour UTC
ClassThe compute and memory capacity of the instance
EngineName of the database engine to be used for this DB Instance
StorageInitially allocated storage size specified in gigabytes (GBs)
Master UsernameThe master username for the DB Instance
StatusThe current status of the DB
Instance. Valid values: available | backing-up |
creating | deleted | deleting |
failed | modifying | rebooting |
resetting-master-credentials | storage-full |
incompatible-parameters | incompatible-restore
Endpoint AddressAddress of the DB Instance
PortPort used to connect to the DB Instance
AZThe instance's Availability Zone
Backup RetentionThe number of days that automated backups are retained before deletion
PendingBackupRetentionThe backup
retention period that will be applied at the next maintenance window, or
that is currently being applied if the
--apply-immediately option was specified
PendingClassThe class to which
the instance will be scaled during the next maintenance window, or to which
it is currently being scaled if the
--apply-immediately option was specified
PendingCredentialsThe (hidden) master user password that will be applied to the DB Instance
PendingStorageThe storage size
to which the instance will be scaled during the next maintenance window, or
to which it is currently being scaled if the
--apply-immediately option was specified
PendingMulti-AZIf true, indicates that the instance will be converted to run as a Multi-AZ deployment; if false, the instance will be converted to run as a standard (Single-AZ) deployment.
PendingVersionThe engine version of the pending database instance.
DB NameName of the initial
database created when the instance was created. This column appears only in
the --show-long view
Maintenance WindowThe period
during which patching and instance modifications will be performed. This
column appears only in the --show-long view
Backup WindowThe period during
which automated backups are created. This column appears only in the
--show-long view
Latest Restorable TimeThe latest
time to which a database can be restored using point-in-time restore. This
column appears only in the --show-long view.
Multi-AZIndicates if this is a Multi-AZ DB Instance.
EngineVersionThe version number of the database engine.
Auto Minor Version
UpgradeIndicates that minor version upgrades will be
applied to the DB Instance during the maintenance window. This column
appears only in the --show-long view.
NameThe DB Security Group name
StatusStatus of authorization.
Valid values: authorizing | authorized |
revoking
Group NameName of DB Parameter Group applied to
Apply StatusStatus of applying
the parameter group. It can be either in-sync or
pending-reboot
Read Replica IDThe identifier of the source DB Instance for which this DB Instance acts as a Read Replica
This example creates a Read Replica with the minimal set of parameters.
PROMPT>rds-create-db-instance-read-replica SimCoProd01Replica01 -s SimcoProd01DBINSTANCE simcoprod01replica01 db.m1.large mysql 10 master creating us-east-1b 0 n 5.1.50 simcoprod01 SECGROUP default active PARAMGRP default.mysql5.1 in-sync
This example creates a Read Replica, specifying an availability zone.
PROMPT>rds-create-db-instance-read-replica SimCoProd01Replica02 -s SimCoProd01-z us-east-1aDBINSTANCE simcoprod01replica02 db.m1.large mysql 10 master creating us-east-1a 0 n 5.1.50 simcoprod01 SECGROUP default active PARAMGRP default.mysql5.1 in-sync