| Did this page help you? Yes No Tell us about it... |
Creates a new DB Instance.
rds-create-db-instance
DBInstanceIdentifier
-s (--allocated-storage) value
-c (--db-instance-class) valuevaluevalue
-p (--master-user-password) valuevaluevalue ] value ] value ] value ] value] value] value[,value...] ]value ] value]value ]value ]value ] value ]
[General Options]
| Name | Description | Required | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
DB Instance identifier. 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: Must contain from 1 to 63 (1 to 15 for SQL Server) alphanumeric characters or hyphens. First character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. Example: myinstance |
Yes | ||||||||||||||||||||||||||||||||
|
|
Contains the compute and memory capacity of the DB
Instance. Different instance classes are available for different database engines.
For information about valid values for a particular engine, use the
Type: String Default: None Valid values: Example: |
Yes | ||||||||||||||||||||||||||||||||
|
|
The meaning of this parameter differs according to the database engine you use. MySQL Name of a database to create when the DB Instance is created. If this parameter is not specified, no database is created in the instance. Constraints:
Type: String Example: Oracle The Oracle System ID (SID) of the created DB Instance. Constraints:
Type: String Example: SQL Server Not applicable. |
No | ||||||||||||||||||||||||||||||||
|
|
Name of the database engine to be used for this instance. Type: String Default: None Valid values: |
Yes | ||||||||||||||||||||||||||||||||
|
|
Version number of the database engine to use. Type: String MySQL Example: Oracle Example: SQL Server Example: |
No | ||||||||||||||||||||||||||||||||
|
|
Name of the DB Parameter Group to associate with this DB Instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used. Type: String Example: |
No | ||||||||||||||||||||||||||||||||
|
|
License model for this DB Instance. Type: String Default: None Valid values: Example: |
No | ||||||||||||||||||||||||||||||||
|
|
Specifies if this is a Multi-AZ deployment.
Type: Boolean Default: Constraints: The Valid values: |
No | ||||||||||||||||||||||||||||||||
|
|
A list of one or more security groups to associate with this DB Instance. Type: String[] Example: |
No | ||||||||||||||||||||||||||||||||
|
|
Port number that the DB Instance uses for connections. Type: Integer MySQL Default: 3306 Valid Values: 1150-65535 Type: Integer Oracle Default: 1521 Valid Values: 1150-65535 Type: Integer Example: SQL Server Default:
Valid Values: Type: Integer |
No | ||||||||||||||||||||||||||||||||
|
|
Amount of storage to be initially allocated for the DB Instance, in gigabytes. Type: String MySQL Constraints: Must be an integer between 5 and 1024. Oracle Constraints: Must be an integer between 10 and 1024. SQL Server Constraints: Must be an integer from 200 to 1024 (sqlserver-se and sqlserver-ee) or from 30 to 1024 (sqlserver-ex and sqlserver-web). Example: |
Yes | ||||||||||||||||||||||||||||||||
|
|
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. Type: Boolean Default: true Example: |
No | ||||||||||||||||||||||||||||||||
|
|
The name of the master database user. Type: String MySQL Constraints:
Oracle Constraints:
SQL Server Constraints:
Example: |
Yes | ||||||||||||||||||||||||||||||||
|
|
Password for the master DB Instance user. If this parameter is not provided, the user will be prompted to enter a password. MySQL Constraints: Must contain from 8 to 41 alphanumeric characters. Type: String Oracle Constraints: Must contain from 8 to 30 alphanumeric characters. Type: String SQL Server Constraints: Must contain from 8 to 128 alphanumeric characters. Example: |
No | ||||||||||||||||||||||||||||||||
|
|
Weekly time range (in UTC) during which system maintenance can occur. Type: String Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. The following list shows the time blocks for each region from which the default maintenance windows are assigned.
Default: Depends on the Region the database was created in. The following table lists the default maintenance window for each Region.
Constraints:
Example: |
No | ||||||||||||||||||||||||||||||||
|
|
The daily time range (in UTC) during which automated
backups are created if backups are enabled (using the
Type: String Default: A 30-minute window selected at random from an 8-hour block of time per region. The following table lists the time blocks for each region from which the default backup windows are assigned.
Default: Depends on the Region the database was created in. The following table lists the default backup window for each Region.
Constraints:
|
No | ||||||||||||||||||||||||||||||||
|
|
The number of days automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables backups. Type: Integer Default: 1 Constraints: Must be a value from 0 to 35. |
No | ||||||||||||||||||||||||||||||||
|
|
The EC2 Availability Zone that the DB Instance 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 DB Subnet Group to associate with this DB Instance. Specifying a DB Subnet Group will create this DB Instance in a VPC. Type: String Default: none Constraints: Must be the name of an existing DB Subnet Group. Example: |
No | ||||||||||||||||||||||||||||||||
|
|
Specifies the Oracle character set that the DB Instance will use. For a list of supported character sets, go to Appendix: Oracle Character Sets Supported in Amazon RDS. Oracle only. |
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
License ModelThe license model 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 which will be applied at the next maintenance window, or
which 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 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 (for the MySQL engine) or the
Oracle System ID (SID) of the created DB Instance (for the Oracle engine). For
SQL Server, will always be null.
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 a DB Instance which acts as a read replica of this DB Instance
NameSubnet group name
DescriptionSubnet group description
StatusSubnet group status
VpcIdIdentifier of the VPC associated with the subnet group
Subnet identifierSubnet group identifier
Subnet Availability ZoneAvailability Zone of the subnet
StatusStatus of the subnet
This example creates a DB Instance with the minimal set of parameters.
PROMPT> rds-create-db-instance SimCoProd01 -s 10 -c db.m1.large -e mysql -u master -p Kew2401Sd
This example creates a DB Instance with the minimal set of parameters.
PROMPT> rds-create-db-instance SimCoProd01 -s 10 -c db.m1.large -e oracle-se --db-name MYORACLE -lm bring-your-own-license -u master -p Kew2401Sd
This example creates a database, prompting for the master user password.
PROMPT> rds-create-db-instance SimCoProd02 -s 10 -c db.m1.large -e mysql -u master -p