ClusterInstance

Provides an RDS Cluster Instance Resource. A Cluster Instance Resource defines attributes that are specific to a single instance in a RDS Cluster, specifically running Amazon Aurora.

Unlike other RDS resources that support replication, with Amazon Aurora you do not designate a primary and subsequent replicas. Instead, you simply add RDS Instances and Aurora manages the replication. You can use the count meta-parameter to make multiple instances and join them all to the same RDS Cluster, or you may specify different Cluster Instance resources with various instance_class sizes.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

NOTE: Deletion Protection from the RDS service can only be enabled at the cluster level, not for individual cluster instances. You can still add the protect CustomResourceOption to this resource configuration if you desire protection from accidental deletion.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = new Aws.Rds.Cluster("default", new Aws.Rds.ClusterArgs
        {
            AvailabilityZones = 
            {
                "us-west-2a",
                "us-west-2b",
                "us-west-2c",
            },
            ClusterIdentifier = "aurora-cluster-demo",
            DatabaseName = "mydb",
            MasterPassword = "barbut8chars",
            MasterUsername = "foo",
        });
        var clusterInstances = new List<Aws.Rds.ClusterInstance>();
        for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            clusterInstances.Add(new Aws.Rds.ClusterInstance($"clusterInstances-{range.Value}", new Aws.Rds.ClusterInstanceArgs
            {
                ClusterIdentifier = @default.Id,
                Identifier = $"aurora-cluster-demo-{range.Value}",
                InstanceClass = "db.r4.large",
            }));
        }
    }

}
package main

import (
    "fmt"

    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/rds"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := rds.NewCluster(ctx, "_default", &rds.ClusterArgs{
            AvailabilityZones: pulumi.StringArray{
                pulumi.String("us-west-2a"),
                pulumi.String("us-west-2b"),
                pulumi.String("us-west-2c"),
            },
            ClusterIdentifier: pulumi.String("aurora-cluster-demo"),
            DatabaseName:      pulumi.String("mydb"),
            MasterPassword:    pulumi.String("barbut8chars"),
            MasterUsername:    pulumi.String("foo"),
        })
        if err != nil {
            return err
        }
        var clusterInstances []*rds.ClusterInstance
        for key0, val0 := range 2 {
            __res, err := rds.NewClusterInstance(ctx, fmt.Sprintf("clusterInstances-%v", key0), &rds.ClusterInstanceArgs{
                ClusterIdentifier: _default.ID(),
                Identifier:        pulumi.String(fmt.Sprintf("%v%v", "aurora-cluster-demo-", val0)),
                InstanceClass:     pulumi.String("db.r4.large"),
            })
            if err != nil {
                return err
            }
            clusterInstances = append(clusterInstances, __res)
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

default = aws.rds.Cluster("default",
    availability_zones=[
        "us-west-2a",
        "us-west-2b",
        "us-west-2c",
    ],
    cluster_identifier="aurora-cluster-demo",
    database_name="mydb",
    master_password="barbut8chars",
    master_username="foo")
cluster_instances = []
for range in [{"value": i} for i in range(0, 2)]:
    cluster_instances.append(aws.rds.ClusterInstance(f"clusterInstances-{range['value']}",
        cluster_identifier=default.id,
        identifier=f"aurora-cluster-demo-{range['value']}",
        instance_class="db.r4.large"))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const defaultCluster = new aws.rds.Cluster("default", {
    availabilityZones: [
        "us-west-2a",
        "us-west-2b",
        "us-west-2c",
    ],
    clusterIdentifier: "aurora-cluster-demo",
    databaseName: "mydb",
    masterPassword: "barbut8chars",
    masterUsername: "foo",
});
const clusterInstances: aws.rds.ClusterInstance[] = [];
for (let i = 0; i < 2; i++) {
    clusterInstances.push(new aws.rds.ClusterInstance(`cluster_instances-${i}`, {
        clusterIdentifier: defaultCluster.id,
        identifier: `aurora-cluster-demo-${i}`,
        instanceClass: "db.r4.large",
    }));
}

Create a ClusterInstance Resource

def ClusterInstance(resource_name, opts=None, apply_immediately=None, auto_minor_version_upgrade=None, availability_zone=None, ca_cert_identifier=None, cluster_identifier=None, copy_tags_to_snapshot=None, db_parameter_group_name=None, db_subnet_group_name=None, engine=None, engine_version=None, identifier=None, identifier_prefix=None, instance_class=None, monitoring_interval=None, monitoring_role_arn=None, performance_insights_enabled=None, performance_insights_kms_key_id=None, preferred_backup_window=None, preferred_maintenance_window=None, promotion_tier=None, publicly_accessible=None, tags=None, __props__=None);
name string
The unique name of the resource.
args ClusterInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ClusterInstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ClusterInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ClusterInstance Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ClusterInstance resource accepts the following input properties:

ClusterIdentifier string

The identifier of the aws.rds.Cluster in which to launch this instance.

InstanceClass string

The instance class to use. For details on CPU and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details.

ApplyImmediately bool

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

AutoMinorVersionUpgrade bool

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true.

AvailabilityZone string

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

CaCertIdentifier string

The identifier of the CA certificate for the DB instance.

CopyTagsToSnapshot bool

Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default false.

DbParameterGroupName string

The name of the DB parameter group to associate with this instance.

DbSubnetGroupName string

A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws.rds.Cluster.

Engine string

The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

EngineVersion string

The database engine version.

Identifier string

The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.

IdentifierPrefix string

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

MonitoringInterval int

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

MonitoringRoleArn string

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.

PerformanceInsightsEnabled bool

Specifies whether Performance Insights is enabled or not.

PerformanceInsightsKmsKeyId string

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true.

PreferredBackupWindow string

The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”

PreferredMaintenanceWindow string

The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.

PromotionTier int

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.

PubliclyAccessible bool

Bool to control if instance is publicly accessible. Default false. See the documentation on Creating DB Instances for more details on controlling this property.

Tags Dictionary<string, string>

A map of tags to assign to the instance.

ClusterIdentifier string

The identifier of the aws.rds.Cluster in which to launch this instance.

InstanceClass interface{}

The instance class to use. For details on CPU and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details.

ApplyImmediately bool

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

AutoMinorVersionUpgrade bool

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true.

AvailabilityZone string

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

CaCertIdentifier string

The identifier of the CA certificate for the DB instance.

CopyTagsToSnapshot bool

Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default false.

DbParameterGroupName string

The name of the DB parameter group to associate with this instance.

DbSubnetGroupName string

A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws.rds.Cluster.

Engine string

The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

EngineVersion string

The database engine version.

Identifier string

The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.

IdentifierPrefix string

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

MonitoringInterval int

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

MonitoringRoleArn string

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.

PerformanceInsightsEnabled bool

Specifies whether Performance Insights is enabled or not.

PerformanceInsightsKmsKeyId string

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true.

PreferredBackupWindow string

The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”

PreferredMaintenanceWindow string

The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.

PromotionTier int

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.

PubliclyAccessible bool

Bool to control if instance is publicly accessible. Default false. See the documentation on Creating DB Instances for more details on controlling this property.

Tags map[string]string

A map of tags to assign to the instance.

clusterIdentifier string

The identifier of the aws.rds.Cluster in which to launch this instance.

instanceClass string | InstanceType

The instance class to use. For details on CPU and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details.

applyImmediately boolean

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

autoMinorVersionUpgrade boolean

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true.

availabilityZone string

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

caCertIdentifier string

The identifier of the CA certificate for the DB instance.

copyTagsToSnapshot boolean

Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default false.

dbParameterGroupName string

The name of the DB parameter group to associate with this instance.

dbSubnetGroupName string

A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws.rds.Cluster.

engine EngineType

The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

engineVersion string

The database engine version.

identifier string

The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.

identifierPrefix string

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

monitoringInterval number

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

monitoringRoleArn string

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.

performanceInsightsEnabled boolean

Specifies whether Performance Insights is enabled or not.

performanceInsightsKmsKeyId string

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true.

preferredBackupWindow string

The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”

preferredMaintenanceWindow string

The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.

promotionTier number

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.

publiclyAccessible boolean

Bool to control if instance is publicly accessible. Default false. See the documentation on Creating DB Instances for more details on controlling this property.

tags {[key: string]: string}

A map of tags to assign to the instance.

cluster_identifier str

The identifier of the aws.rds.Cluster in which to launch this instance.

instance_class string | str

The instance class to use. For details on CPU and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details.

apply_immediately bool

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

auto_minor_version_upgrade bool

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true.

availability_zone str

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

ca_cert_identifier str

The identifier of the CA certificate for the DB instance.

copy_tags_to_snapshot bool

Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default false.

db_parameter_group_name str

The name of the DB parameter group to associate with this instance.

db_subnet_group_name str

A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws.rds.Cluster.

engine str

The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

engine_version str

The database engine version.

identifier str

The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.

identifier_prefix str

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

monitoring_interval float

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

monitoring_role_arn str

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.

performance_insights_enabled bool

Specifies whether Performance Insights is enabled or not.

performance_insights_kms_key_id str

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true.

preferred_backup_window str

The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”

preferred_maintenance_window str

The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.

promotion_tier float

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.

publicly_accessible bool

Bool to control if instance is publicly accessible. Default false. See the documentation on Creating DB Instances for more details on controlling this property.

tags Dict[str, str]

A map of tags to assign to the instance.

Outputs

All input properties are implicitly available as output properties. Additionally, the ClusterInstance resource produces the following output properties:

Arn string

Amazon Resource Name (ARN) of cluster instance

DbiResourceId string

The region-unique, immutable identifier for the DB instance.

Endpoint string

The DNS address for this instance. May not be writable

Id string
The provider-assigned unique ID for this managed resource.
KmsKeyId string

The ARN for the KMS encryption key if one is set to the cluster.

Port int

The database port

StorageEncrypted bool

Specifies whether the DB cluster is encrypted.

Writer bool

Boolean indicating if this instance is writable. False indicates this instance is a read replica.

Arn string

Amazon Resource Name (ARN) of cluster instance

DbiResourceId string

The region-unique, immutable identifier for the DB instance.

Endpoint string

The DNS address for this instance. May not be writable

Id string
The provider-assigned unique ID for this managed resource.
KmsKeyId string

The ARN for the KMS encryption key if one is set to the cluster.

Port int

The database port

StorageEncrypted bool

Specifies whether the DB cluster is encrypted.

Writer bool

Boolean indicating if this instance is writable. False indicates this instance is a read replica.

arn string

Amazon Resource Name (ARN) of cluster instance

dbiResourceId string

The region-unique, immutable identifier for the DB instance.

endpoint string

The DNS address for this instance. May not be writable

id string
The provider-assigned unique ID for this managed resource.
kmsKeyId string

The ARN for the KMS encryption key if one is set to the cluster.

port number

The database port

storageEncrypted boolean

Specifies whether the DB cluster is encrypted.

writer boolean

Boolean indicating if this instance is writable. False indicates this instance is a read replica.

arn str

Amazon Resource Name (ARN) of cluster instance

dbi_resource_id str

The region-unique, immutable identifier for the DB instance.

endpoint str

The DNS address for this instance. May not be writable

id str
The provider-assigned unique ID for this managed resource.
kms_key_id str

The ARN for the KMS encryption key if one is set to the cluster.

port float

The database port

storage_encrypted bool

Specifies whether the DB cluster is encrypted.

writer bool

Boolean indicating if this instance is writable. False indicates this instance is a read replica.

Look up an Existing ClusterInstance Resource

Get an existing ClusterInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ClusterInstanceState, opts?: CustomResourceOptions): ClusterInstance
static get(resource_name, id, opts=None, apply_immediately=None, arn=None, auto_minor_version_upgrade=None, availability_zone=None, ca_cert_identifier=None, cluster_identifier=None, copy_tags_to_snapshot=None, db_parameter_group_name=None, db_subnet_group_name=None, dbi_resource_id=None, endpoint=None, engine=None, engine_version=None, identifier=None, identifier_prefix=None, instance_class=None, kms_key_id=None, monitoring_interval=None, monitoring_role_arn=None, performance_insights_enabled=None, performance_insights_kms_key_id=None, port=None, preferred_backup_window=None, preferred_maintenance_window=None, promotion_tier=None, publicly_accessible=None, storage_encrypted=None, tags=None, writer=None, __props__=None);
func GetClusterInstance(ctx *Context, name string, id IDInput, state *ClusterInstanceState, opts ...ResourceOption) (*ClusterInstance, error)
public static ClusterInstance Get(string name, Input<string> id, ClusterInstanceState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

ApplyImmediately bool

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

Arn string

Amazon Resource Name (ARN) of cluster instance

AutoMinorVersionUpgrade bool

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true.

AvailabilityZone string

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

CaCertIdentifier string

The identifier of the CA certificate for the DB instance.

ClusterIdentifier string

The identifier of the aws.rds.Cluster in which to launch this instance.

CopyTagsToSnapshot bool

Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default false.

DbParameterGroupName string

The name of the DB parameter group to associate with this instance.

DbSubnetGroupName string

A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws.rds.Cluster.

DbiResourceId string

The region-unique, immutable identifier for the DB instance.

Endpoint string

The DNS address for this instance. May not be writable

Engine string

The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

EngineVersion string

The database engine version.

Identifier string

The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.

IdentifierPrefix string

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

InstanceClass string

The instance class to use. For details on CPU and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details.

KmsKeyId string

The ARN for the KMS encryption key if one is set to the cluster.

MonitoringInterval int

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

MonitoringRoleArn string

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.

PerformanceInsightsEnabled bool

Specifies whether Performance Insights is enabled or not.

PerformanceInsightsKmsKeyId string

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true.

Port int

The database port

PreferredBackupWindow string

The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”

PreferredMaintenanceWindow string

The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.

PromotionTier int

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.

PubliclyAccessible bool

Bool to control if instance is publicly accessible. Default false. See the documentation on Creating DB Instances for more details on controlling this property.

StorageEncrypted bool

Specifies whether the DB cluster is encrypted.

Tags Dictionary<string, string>

A map of tags to assign to the instance.

Writer bool

Boolean indicating if this instance is writable. False indicates this instance is a read replica.

ApplyImmediately bool

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

Arn string

Amazon Resource Name (ARN) of cluster instance

AutoMinorVersionUpgrade bool

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true.

AvailabilityZone string

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

CaCertIdentifier string

The identifier of the CA certificate for the DB instance.

ClusterIdentifier string

The identifier of the aws.rds.Cluster in which to launch this instance.

CopyTagsToSnapshot bool

Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default false.

DbParameterGroupName string

The name of the DB parameter group to associate with this instance.

DbSubnetGroupName string

A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws.rds.Cluster.

DbiResourceId string

The region-unique, immutable identifier for the DB instance.

Endpoint string

The DNS address for this instance. May not be writable

Engine string

The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

EngineVersion string

The database engine version.

Identifier string

The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.

IdentifierPrefix string

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

InstanceClass interface{}

The instance class to use. For details on CPU and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details.

KmsKeyId string

The ARN for the KMS encryption key if one is set to the cluster.

MonitoringInterval int

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

MonitoringRoleArn string

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.

PerformanceInsightsEnabled bool

Specifies whether Performance Insights is enabled or not.

PerformanceInsightsKmsKeyId string

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true.

Port int

The database port

PreferredBackupWindow string

The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”

PreferredMaintenanceWindow string

The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.

PromotionTier int

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.

PubliclyAccessible bool

Bool to control if instance is publicly accessible. Default false. See the documentation on Creating DB Instances for more details on controlling this property.

StorageEncrypted bool

Specifies whether the DB cluster is encrypted.

Tags map[string]string

A map of tags to assign to the instance.

Writer bool

Boolean indicating if this instance is writable. False indicates this instance is a read replica.

applyImmediately boolean

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

arn string

Amazon Resource Name (ARN) of cluster instance

autoMinorVersionUpgrade boolean

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true.

availabilityZone string

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

caCertIdentifier string

The identifier of the CA certificate for the DB instance.

clusterIdentifier string

The identifier of the aws.rds.Cluster in which to launch this instance.

copyTagsToSnapshot boolean

Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default false.

dbParameterGroupName string

The name of the DB parameter group to associate with this instance.

dbSubnetGroupName string

A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws.rds.Cluster.

dbiResourceId string

The region-unique, immutable identifier for the DB instance.

endpoint string

The DNS address for this instance. May not be writable

engine EngineType

The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

engineVersion string

The database engine version.

identifier string

The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.

identifierPrefix string

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

instanceClass string | InstanceType

The instance class to use. For details on CPU and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details.

kmsKeyId string

The ARN for the KMS encryption key if one is set to the cluster.

monitoringInterval number

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

monitoringRoleArn string

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.

performanceInsightsEnabled boolean

Specifies whether Performance Insights is enabled or not.

performanceInsightsKmsKeyId string

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true.

port number

The database port

preferredBackupWindow string

The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”

preferredMaintenanceWindow string

The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.

promotionTier number

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.

publiclyAccessible boolean

Bool to control if instance is publicly accessible. Default false. See the documentation on Creating DB Instances for more details on controlling this property.

storageEncrypted boolean

Specifies whether the DB cluster is encrypted.

tags {[key: string]: string}

A map of tags to assign to the instance.

writer boolean

Boolean indicating if this instance is writable. False indicates this instance is a read replica.

apply_immediately bool

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default isfalse.

arn str

Amazon Resource Name (ARN) of cluster instance

auto_minor_version_upgrade bool

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true.

availability_zone str

The EC2 Availability Zone that the DB instance is created in. See docs about the details.

ca_cert_identifier str

The identifier of the CA certificate for the DB instance.

cluster_identifier str

The identifier of the aws.rds.Cluster in which to launch this instance.

copy_tags_to_snapshot bool

Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default false.

db_parameter_group_name str

The name of the DB parameter group to associate with this instance.

db_subnet_group_name str

A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws.rds.Cluster.

dbi_resource_id str

The region-unique, immutable identifier for the DB instance.

endpoint str

The DNS address for this instance. May not be writable

engine str

The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

engine_version str

The database engine version.

identifier str

The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.

identifier_prefix str

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

instance_class string | str

The instance class to use. For details on CPU and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details.

kms_key_id str

The ARN for the KMS encryption key if one is set to the cluster.

monitoring_interval float

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

monitoring_role_arn str

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.

performance_insights_enabled bool

Specifies whether Performance Insights is enabled or not.

performance_insights_kms_key_id str

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true.

port float

The database port

preferred_backup_window str

The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”

preferred_maintenance_window str

The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.

promotion_tier float

Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.

publicly_accessible bool

Bool to control if instance is publicly accessible. Default false. See the documentation on Creating DB Instances for more details on controlling this property.

storage_encrypted bool

Specifies whether the DB cluster is encrypted.

tags Dict[str, str]

A map of tags to assign to the instance.

writer bool

Boolean indicating if this instance is writable. False indicates this instance is a read replica.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.