View source: R/rds_operations.R
rds_create_db_instance_read_replica | R Documentation |
Creates a new DB instance that acts as a read replica for an existing source DB instance or Multi-AZ DB cluster. You can create a read replica for a DB instance running Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server. You can create a read replica for a Multi-AZ DB cluster running MySQL or PostgreSQL. For more information, see Working with read replicas and Migrating from a Multi-AZ DB cluster to a DB instance using a read replica in the Amazon RDS User Guide.
See https://www.paws-r-sdk.com/docs/rds_create_db_instance_read_replica/ for full documentation.
rds_create_db_instance_read_replica(
DBInstanceIdentifier,
SourceDBInstanceIdentifier = NULL,
DBInstanceClass = NULL,
AvailabilityZone = NULL,
Port = NULL,
MultiAZ = NULL,
AutoMinorVersionUpgrade = NULL,
Iops = NULL,
OptionGroupName = NULL,
DBParameterGroupName = NULL,
PubliclyAccessible = NULL,
Tags = NULL,
DBSubnetGroupName = NULL,
VpcSecurityGroupIds = NULL,
StorageType = NULL,
CopyTagsToSnapshot = NULL,
MonitoringInterval = NULL,
MonitoringRoleArn = NULL,
KmsKeyId = NULL,
PreSignedUrl = NULL,
EnableIAMDatabaseAuthentication = NULL,
EnablePerformanceInsights = NULL,
PerformanceInsightsKMSKeyId = NULL,
PerformanceInsightsRetentionPeriod = NULL,
EnableCloudwatchLogsExports = NULL,
ProcessorFeatures = NULL,
UseDefaultProcessorFeatures = NULL,
DeletionProtection = NULL,
Domain = NULL,
DomainIAMRoleName = NULL,
DomainFqdn = NULL,
DomainOu = NULL,
DomainAuthSecretArn = NULL,
DomainDnsIps = NULL,
ReplicaMode = NULL,
MaxAllocatedStorage = NULL,
CustomIamInstanceProfile = NULL,
NetworkType = NULL,
StorageThroughput = NULL,
EnableCustomerOwnedIp = NULL,
AllocatedStorage = NULL,
SourceDBClusterIdentifier = NULL,
DedicatedLogVolume = NULL,
UpgradeStorageConfig = NULL,
CACertificateIdentifier = NULL,
SourceRegion = NULL
)
DBInstanceIdentifier |
[required] The DB instance identifier of the read replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string. |
SourceDBInstanceIdentifier |
The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to 15 read replicas, with the exception of Oracle and SQL Server, which can have up to five. Constraints:
|
DBInstanceClass |
The compute and memory capacity of the read replica, for example db.m4.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide. Default: Inherits the value from the source DB instance. |
AvailabilityZone |
The Availability Zone (AZ) where the read replica will be created. Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region. Example: |
Port |
The port number that the DB instance uses for connections. Valid Values: Default: Inherits the value from the source DB instance. |
MultiAZ |
Specifies whether the read replica is in a Multi-AZ deployment. You can create a read replica as a Multi-AZ DB instance. RDS creates a standby of your replica in another Availability Zone for failover support for the replica. Creating your read replica as a Multi-AZ DB instance is independent of whether the source is a Multi-AZ DB instance or a Multi-AZ DB cluster. This setting doesn't apply to RDS Custom DB instances. |
AutoMinorVersionUpgrade |
Specifies whether to automatically apply minor engine upgrades to the read replica during the maintenance window. This setting doesn't apply to RDS Custom DB instances. Default: Inherits the value from the source DB instance. |
Iops |
The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. |
OptionGroupName |
The option group to associate the DB instance with. If not specified, RDS uses the option group associated with the source DB instance or cluster. For SQL Server, you must use the option group associated with the source. This setting doesn't apply to RDS Custom DB instances. |
DBParameterGroupName |
The name of the DB parameter group to associate with this DB instance. If you don't specify a value for Specifying a parameter group for this operation is only supported for MySQL DB instances for cross-Region read replicas and for Oracle DB instances. It isn't supported for MySQL DB instances for same Region read replicas or for RDS Custom. Constraints:
|
PubliclyAccessible |
Specifies whether the DB instance is publicly accessible. When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it. When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address. For more information, see
|
Tags |
|
DBSubnetGroupName |
A DB subnet group for the DB instance. The new DB instance is created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance isn't created in a VPC. Constraints:
Example: |
VpcSecurityGroupIds |
A list of Amazon EC2 VPC security groups to associate with the read replica. This setting doesn't apply to RDS Custom DB instances. Default: The default EC2 VPC security group for the DB subnet group's VPC. |
StorageType |
The storage type to associate with the read replica. If you specify Valid Values: Default: |
CopyTagsToSnapshot |
Specifies whether to copy all tags from the read replica to snapshots of the read replica. By default, tags aren't copied. |
MonitoringInterval |
The interval, in seconds, between points when Enhanced Monitoring
metrics are collected for the read replica. To disable collection of
Enhanced Monitoring metrics, specify If This setting doesn't apply to RDS Custom DB instances. Valid Values: Default: |
MonitoringRoleArn |
The ARN for the IAM role that permits RDS to send enhanced monitoring
metrics to Amazon CloudWatch Logs. For example,
If This setting doesn't apply to RDS Custom DB instances. |
KmsKeyId |
The Amazon Web Services KMS key identifier for an encrypted read replica. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you create an encrypted read replica in the same Amazon Web Services Region as the source DB instance or Multi-AZ DB cluster, don't specify a value for this parameter. A read replica in the same Amazon Web Services Region is always encrypted with the same KMS key as the source DB instance or cluster. If you create an encrypted read replica in a different Amazon Web Services Region, then you must specify a KMS key identifier for the destination Amazon Web Services Region. KMS keys are specific to the Amazon Web Services Region that they are created in, and you can't use KMS keys from one Amazon Web Services Region in another Amazon Web Services Region. You can't create an encrypted read replica from an unencrypted DB instance or Multi-AZ DB cluster. This setting doesn't apply to RDS Custom, which uses the same KMS key as the primary replica. |
PreSignedUrl |
When you are creating a read replica from one Amazon Web Services
GovCloud (US) Region to another or from one China Amazon Web Services
Region to another, the URL that contains a Signature Version 4 signed
request for the
This setting applies only to Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions. It's ignored in other Amazon Web Services Regions. This setting applies only when replicating from a source DB instance. Source DB clusters aren't supported in Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions. You must specify this parameter when you create an encrypted read
replica from another Amazon Web Services Region by using the Amazon RDS
API. Don't specify The presigned URL must be a valid request for the
To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing Process. If you are using an Amazon Web Services SDK tool or the CLI, you can
specify
This setting doesn't apply to RDS Custom DB instances. If you supply a value for this operation's |
EnableIAMDatabaseAuthentication |
Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled. For more information about IAM database authentication, see IAM Database Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom DB instances. |
EnablePerformanceInsights |
Specifies whether to enable Performance Insights for the read replica. For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom DB instances. |
PerformanceInsightsKMSKeyId |
The Amazon Web Services KMS key identifier for encryption of Performance Insights data. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for This setting doesn't apply to RDS Custom DB instances. |
PerformanceInsightsRetentionPeriod |
The number of days to retain Performance Insights data. This setting doesn't apply to RDS Custom DB instances. Valid Values:
Default: If you specify a retention period that isn't valid, such as |
EnableCloudwatchLogsExports |
The list of logs that the new DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom DB instances. |
ProcessorFeatures |
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance. This setting doesn't apply to RDS Custom DB instances. |
UseDefaultProcessorFeatures |
Specifies whether the DB instance class of the DB instance uses its default processor features. This setting doesn't apply to RDS Custom DB instances. |
DeletionProtection |
Specifies whether to enable deletion protection for the DB instance. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see Deleting a DB Instance. |
Domain |
The Active Directory directory ID to create the DB instance in. Currently, only MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain. For more information, see Kerberos Authentication in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom DB instances. |
DomainIAMRoleName |
The name of the IAM role to use when making API calls to the Directory Service. This setting doesn't apply to RDS Custom DB instances. |
DomainFqdn |
The fully qualified domain name (FQDN) of an Active Directory domain. Constraints:
Example: |
DomainOu |
The Active Directory organizational unit for your DB instance to join. Constraints:
Example:
|
DomainAuthSecretArn |
The ARN for the Secrets Manager secret with the credentials for the user joining the domain. Example:
|
DomainDnsIps |
The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers. Constraints:
Example: |
ReplicaMode |
The open mode of the replica database: mounted or read-only. This parameter is only supported for Oracle DB instances. Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload. You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see Working with Oracle Read Replicas for Amazon RDS in the Amazon RDS User Guide. For RDS Custom, you must specify this parameter and set it to |
MaxAllocatedStorage |
The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance. For more information about this setting, including limitations that apply to it, see Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User Guide. |
CustomIamInstanceProfile |
The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the following requirements:
For the list of permissions required for the IAM role, see Configure IAM and your VPC in the Amazon RDS User Guide. This setting is required for RDS Custom DB instances. |
NetworkType |
The network type of the DB instance. Valid Values:
The network type is determined by the For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide. |
StorageThroughput |
Specifies the storage throughput value for the read replica. This setting doesn't apply to RDS Custom or Amazon Aurora DB instances. |
EnableCustomerOwnedIp |
Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts read replica. A CoIP provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the read replica from outside of its virtual private cloud (VPC) on your local network. For more information about RDS on Outposts, see Working with Amazon RDS on Amazon Web Services Outposts in the Amazon RDS User Guide. For more information about CoIPs, see Customer-owned IP addresses in the Amazon Web Services Outposts User Guide. |
AllocatedStorage |
The amount of storage (in gibibytes) to allocate initially for the read
replica. Follow the allocation rules specified in
Be sure to allocate enough storage for your read replica so that the create operation can succeed. You can also allocate additional storage for future growth. |
SourceDBClusterIdentifier |
The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas. Constraints:
|
DedicatedLogVolume |
Indicates whether the DB instance has a dedicated log volume (DLV) enabled. |
UpgradeStorageConfig |
Whether to upgrade the storage file system configuration on the read replica. This option migrates the read replica from the old storage file system layout to the preferred layout. |
CACertificateIdentifier |
The CA certificate identifier to use for the read replica's server certificate. This setting doesn't apply to RDS Custom DB instances. For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide. |
SourceRegion |
The ID of the region that contains the source for the read replica. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.