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
protectCustomResourceOption 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
new ClusterInstance(name: string, args: ClusterInstanceArgs, opts?: CustomResourceOptions);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);func NewClusterInstance(ctx *Context, name string, args ClusterInstanceArgs, opts ...ResourceOption) (*ClusterInstance, error)public ClusterInstance(string name, ClusterInstanceArgs args, CustomResourceOptions? opts = null)- 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:
- Cluster
Identifier string The identifier of the
aws.rds.Clusterin which to launch this instance.- Instance
Class 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.- Apply
Immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false.- Auto
Minor boolVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default
true.- Availability
Zone string The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- 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 stringGroup Name The name of the DB parameter group to associate with this instance.
- Db
Subnet stringGroup Name A DB subnet group to associate with this DB instance. NOTE: This must match the
db_subnet_group_nameof the attachedaws.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.- Engine
Version string The database engine version.
- Identifier string
The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Monitoring
Interval 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.
- Monitoring
Role stringArn 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 boolEnabled Specifies whether Performance Insights is enabled or not.
- Performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true.- Preferred
Backup stringWindow The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”
- Preferred
Maintenance stringWindow The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.
- Promotion
Tier int 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.- Dictionary<string, string>
A map of tags to assign to the instance.
- Cluster
Identifier string The identifier of the
aws.rds.Clusterin which to launch this instance.- Instance
Class 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.- Apply
Immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false.- Auto
Minor boolVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default
true.- Availability
Zone string The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- 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 stringGroup Name The name of the DB parameter group to associate with this instance.
- Db
Subnet stringGroup Name A DB subnet group to associate with this DB instance. NOTE: This must match the
db_subnet_group_nameof the attachedaws.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.- Engine
Version string The database engine version.
- Identifier string
The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Monitoring
Interval 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.
- Monitoring
Role stringArn 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 boolEnabled Specifies whether Performance Insights is enabled or not.
- Performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true.- Preferred
Backup stringWindow The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”
- Preferred
Maintenance stringWindow The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.
- Promotion
Tier int 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.- map[string]string
A map of tags to assign to the instance.
- cluster
Identifier string The identifier of the
aws.rds.Clusterin which to launch this instance.- instance
Class 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.- apply
Immediately boolean Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false.- auto
Minor booleanVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default
true.- availability
Zone string The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- boolean
Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default
false.- db
Parameter stringGroup Name The name of the DB parameter group to associate with this instance.
- db
Subnet stringGroup Name A DB subnet group to associate with this DB instance. NOTE: This must match the
db_subnet_group_nameof the attachedaws.rds.Cluster.- engine
Engine
Type 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 string The database engine version.
- identifier string
The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.
- identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- monitoring
Interval 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.
- monitoring
Role stringArn 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 booleanEnabled Specifies whether Performance Insights is enabled or not.
- performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true.- preferred
Backup stringWindow The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”
- preferred
Maintenance stringWindow The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.
- promotion
Tier number Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.
- publicly
Accessible 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.- {[key: string]: string}
A map of tags to assign to the instance.
- cluster_
identifier str The identifier of the
aws.rds.Clusterin 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 is
false.- auto_
minor_ boolversion_ upgrade 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_ stridentifier The identifier of the CA certificate for the DB instance.
- 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_ strgroup_ name The name of the DB parameter group to associate with this instance.
- db_
subnet_ strgroup_ name A DB subnet group to associate with this DB instance. NOTE: This must match the
db_subnet_group_nameof the attachedaws.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_ strarn 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_ boolenabled Specifies whether Performance Insights is enabled or not.
- performance_
insights_ strkms_ key_ id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true.- preferred_
backup_ strwindow The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”
- preferred_
maintenance_ strwindow 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.- 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
- Dbi
Resource stringId 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.
- Kms
Key stringId The ARN for the KMS encryption key if one is set to the cluster.
- Port int
The database port
- Storage
Encrypted bool Specifies whether the DB cluster is encrypted.
- Writer bool
Boolean indicating if this instance is writable.
Falseindicates this instance is a read replica.
- Arn string
Amazon Resource Name (ARN) of cluster instance
- Dbi
Resource stringId 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.
- Kms
Key stringId The ARN for the KMS encryption key if one is set to the cluster.
- Port int
The database port
- Storage
Encrypted bool Specifies whether the DB cluster is encrypted.
- Writer bool
Boolean indicating if this instance is writable.
Falseindicates this instance is a read replica.
- arn string
Amazon Resource Name (ARN) of cluster instance
- dbi
Resource stringId 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.
- kms
Key stringId The ARN for the KMS encryption key if one is set to the cluster.
- port number
The database port
- storage
Encrypted boolean Specifies whether the DB cluster is encrypted.
- writer boolean
Boolean indicating if this instance is writable.
Falseindicates this instance is a read replica.
- arn str
Amazon Resource Name (ARN) of cluster instance
- dbi_
resource_ strid 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_ strid 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.
Falseindicates 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): ClusterInstancestatic 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:
- Apply
Immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false.- Arn string
Amazon Resource Name (ARN) of cluster instance
- Auto
Minor boolVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default
true.- Availability
Zone string The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- Cluster
Identifier string The identifier of the
aws.rds.Clusterin which to launch this instance.- 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 stringGroup Name The name of the DB parameter group to associate with this instance.
- Db
Subnet stringGroup Name A DB subnet group to associate with this DB instance. NOTE: This must match the
db_subnet_group_nameof the attachedaws.rds.Cluster.- Dbi
Resource stringId 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.- Engine
Version string The database engine version.
- Identifier string
The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Instance
Class 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.- Kms
Key stringId The ARN for the KMS encryption key if one is set to the cluster.
- Monitoring
Interval 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.
- Monitoring
Role stringArn 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 boolEnabled Specifies whether Performance Insights is enabled or not.
- Performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true.- Port int
The database port
- Preferred
Backup stringWindow The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”
- Preferred
Maintenance stringWindow The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.
- Promotion
Tier int 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.
- Dictionary<string, string>
A map of tags to assign to the instance.
- Writer bool
Boolean indicating if this instance is writable.
Falseindicates this instance is a read replica.
- Apply
Immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false.- Arn string
Amazon Resource Name (ARN) of cluster instance
- Auto
Minor boolVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default
true.- Availability
Zone string The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- Cluster
Identifier string The identifier of the
aws.rds.Clusterin which to launch this instance.- 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 stringGroup Name The name of the DB parameter group to associate with this instance.
- Db
Subnet stringGroup Name A DB subnet group to associate with this DB instance. NOTE: This must match the
db_subnet_group_nameof the attachedaws.rds.Cluster.- Dbi
Resource stringId 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.- Engine
Version string The database engine version.
- Identifier string
The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Instance
Class 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.- Kms
Key stringId The ARN for the KMS encryption key if one is set to the cluster.
- Monitoring
Interval 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.
- Monitoring
Role stringArn 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 boolEnabled Specifies whether Performance Insights is enabled or not.
- Performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true.- Port int
The database port
- Preferred
Backup stringWindow The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”
- Preferred
Maintenance stringWindow The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.
- Promotion
Tier int 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.
- map[string]string
A map of tags to assign to the instance.
- Writer bool
Boolean indicating if this instance is writable.
Falseindicates this instance is a read replica.
- apply
Immediately boolean Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false.- arn string
Amazon Resource Name (ARN) of cluster instance
- auto
Minor booleanVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default
true.- availability
Zone string The EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- cluster
Identifier string The identifier of the
aws.rds.Clusterin which to launch this instance.- boolean
Indicates whether to copy all of the user-defined tags from the DB instance to snapshots of the DB instance. Default
false.- db
Parameter stringGroup Name The name of the DB parameter group to associate with this instance.
- db
Subnet stringGroup Name A DB subnet group to associate with this DB instance. NOTE: This must match the
db_subnet_group_nameof the attachedaws.rds.Cluster.- dbi
Resource stringId The region-unique, immutable identifier for the DB instance.
- endpoint string
The DNS address for this instance. May not be writable
- engine
Engine
Type 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 string The database engine version.
- identifier string
The indentifier for the RDS instance, if omitted, this provider will assign a random, unique identifier.
- identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- instance
Class 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.- kms
Key stringId The ARN for the KMS encryption key if one is set to the cluster.
- monitoring
Interval 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.
- monitoring
Role stringArn 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 booleanEnabled Specifies whether Performance Insights is enabled or not.
- performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true.- port number
The database port
- preferred
Backup stringWindow The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”
- preferred
Maintenance stringWindow The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”.
- promotion
Tier number Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer.
- publicly
Accessible 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.- storage
Encrypted boolean Specifies whether the DB cluster is encrypted.
- {[key: string]: string}
A map of tags to assign to the instance.
- writer boolean
Boolean indicating if this instance is writable.
Falseindicates this instance is a read replica.
- apply_
immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false.- arn str
Amazon Resource Name (ARN) of cluster instance
- auto_
minor_ boolversion_ upgrade 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_ stridentifier The identifier of the CA certificate for the DB instance.
- cluster_
identifier str The identifier of the
aws.rds.Clusterin which to launch this instance.- 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_ strgroup_ name The name of the DB parameter group to associate with this instance.
- db_
subnet_ strgroup_ name A DB subnet group to associate with this DB instance. NOTE: This must match the
db_subnet_group_nameof the attachedaws.rds.Cluster.- dbi_
resource_ strid 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_ strid 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_ strarn 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_ boolenabled Specifies whether Performance Insights is enabled or not.
- performance_
insights_ strkms_ key_ id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true.- port float
The database port
- preferred_
backup_ strwindow The daily time range during which automated backups are created if automated backups are enabled. Eg: “04:00-09:00”
- preferred_
maintenance_ strwindow 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.
- Dict[str, str]
A map of tags to assign to the instance.
- writer bool
Boolean indicating if this instance is writable.
Falseindicates 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
awsTerraform Provider.