published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Provides an DocumentDB Cluster Resource Instance. A Cluster Instance Resource defines attributes that are specific to a single instance in a DocumentDB Cluster.
You do not designate a primary and subsequent replicas. Instead, you simply add DocumentDB Instances and DocumentDB manages the replication. You can use the count meta-parameter to make multiple instances and join them all to the same DocumentDB Cluster, or you may specify different Cluster Instance resources with various instance_class sizes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const _default = new aws.docdb.Cluster("default", {
clusterIdentifier: "docdb-cluster-demo",
availabilityZones: [
"us-west-2a",
"us-west-2b",
"us-west-2c",
],
masterUsername: "foo",
masterPassword: "barbut8chars",
});
const clusterInstances: aws.docdb.ClusterInstance[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
clusterInstances.push(new aws.docdb.ClusterInstance(`cluster_instances-${range.value}`, {
identifier: `docdb-cluster-demo-${range.value}`,
clusterIdentifier: _default.id,
instanceClass: "db.r5.large",
}));
}
import pulumi
import pulumi_aws as aws
default = aws.docdb.Cluster("default",
cluster_identifier="docdb-cluster-demo",
availability_zones=[
"us-west-2a",
"us-west-2b",
"us-west-2c",
],
master_username="foo",
master_password="barbut8chars")
cluster_instances = []
for range in [{"value": i} for i in range(0, 2)]:
cluster_instances.append(aws.docdb.ClusterInstance(f"cluster_instances-{range['value']}",
identifier=f"docdb-cluster-demo-{range['value']}",
cluster_identifier=default.id,
instance_class="db.r5.large"))
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/docdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := docdb.NewCluster(ctx, "default", &docdb.ClusterArgs{
ClusterIdentifier: pulumi.String("docdb-cluster-demo"),
AvailabilityZones: pulumi.StringArray{
pulumi.String("us-west-2a"),
pulumi.String("us-west-2b"),
pulumi.String("us-west-2c"),
},
MasterUsername: pulumi.String("foo"),
MasterPassword: pulumi.String("barbut8chars"),
})
if err != nil {
return err
}
var clusterInstances []*docdb.ClusterInstance
for index := 0; index < 2; index++ {
key0 := index
val0 := index
__res, err := docdb.NewClusterInstance(ctx, fmt.Sprintf("cluster_instances-%v", key0), &docdb.ClusterInstanceArgs{
Identifier: pulumi.Sprintf("docdb-cluster-demo-%v", val0),
ClusterIdentifier: _default.ID(),
InstanceClass: pulumi.String("db.r5.large"),
})
if err != nil {
return err
}
clusterInstances = append(clusterInstances, __res)
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var @default = new Aws.DocDB.Cluster("default", new()
{
ClusterIdentifier = "docdb-cluster-demo",
AvailabilityZones = new[]
{
"us-west-2a",
"us-west-2b",
"us-west-2c",
},
MasterUsername = "foo",
MasterPassword = "barbut8chars",
});
var clusterInstances = new List<Aws.DocDB.ClusterInstance>();
for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
{
var range = new { Value = rangeIndex };
clusterInstances.Add(new Aws.DocDB.ClusterInstance($"cluster_instances-{range.Value}", new()
{
Identifier = $"docdb-cluster-demo-{range.Value}",
ClusterIdentifier = @default.Id,
InstanceClass = "db.r5.large",
}));
}
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.docdb.Cluster;
import com.pulumi.aws.docdb.ClusterArgs;
import com.pulumi.aws.docdb.ClusterInstance;
import com.pulumi.aws.docdb.ClusterInstanceArgs;
import com.pulumi.codegen.internal.KeyedValue;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Cluster("default", ClusterArgs.builder()
.clusterIdentifier("docdb-cluster-demo")
.availabilityZones(
"us-west-2a",
"us-west-2b",
"us-west-2c")
.masterUsername("foo")
.masterPassword("barbut8chars")
.build());
for (var i = 0; i < 2; i++) {
new ClusterInstance("clusterInstances-" + i, ClusterInstanceArgs.builder()
.identifier(String.format("docdb-cluster-demo-%s", range.value()))
.clusterIdentifier(default_.id())
.instanceClass("db.r5.large")
.build());
}
}
}
resources:
clusterInstances:
type: aws:docdb:ClusterInstance
name: cluster_instances
properties:
identifier: docdb-cluster-demo-${range.value}
clusterIdentifier: ${default.id}
instanceClass: db.r5.large
options: {}
default:
type: aws:docdb:Cluster
properties:
clusterIdentifier: docdb-cluster-demo
availabilityZones:
- us-west-2a
- us-west-2b
- us-west-2c
masterUsername: foo
masterPassword: barbut8chars
Create ClusterInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterInstance(name: string, args: ClusterInstanceArgs, opts?: CustomResourceOptions);@overload
def ClusterInstance(resource_name: str,
args: ClusterInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_identifier: Optional[str] = None,
instance_class: Optional[str] = None,
engine: Optional[str] = None,
identifier: Optional[str] = None,
certificate_rotation_restart: Optional[str] = None,
availability_zone: Optional[str] = None,
copy_tags_to_snapshot: Optional[bool] = None,
enable_performance_insights: Optional[bool] = None,
apply_immediately: Optional[bool] = None,
ca_cert_identifier: Optional[str] = None,
identifier_prefix: Optional[str] = None,
auto_minor_version_upgrade: Optional[bool] = None,
performance_insights_kms_key_id: Optional[str] = None,
preferred_maintenance_window: Optional[str] = None,
promotion_tier: Optional[int] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewClusterInstance(ctx *Context, name string, args ClusterInstanceArgs, opts ...ResourceOption) (*ClusterInstance, error)public ClusterInstance(string name, ClusterInstanceArgs args, CustomResourceOptions? opts = null)
public ClusterInstance(String name, ClusterInstanceArgs args)
public ClusterInstance(String name, ClusterInstanceArgs args, CustomResourceOptions options)
type: aws:docdb:ClusterInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args ClusterInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args ClusterInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var clusterInstanceResource = new Aws.DocDB.ClusterInstance("clusterInstanceResource", new()
{
ClusterIdentifier = "string",
InstanceClass = "string",
Engine = "string",
Identifier = "string",
CertificateRotationRestart = "string",
AvailabilityZone = "string",
CopyTagsToSnapshot = false,
EnablePerformanceInsights = false,
ApplyImmediately = false,
CaCertIdentifier = "string",
IdentifierPrefix = "string",
AutoMinorVersionUpgrade = false,
PerformanceInsightsKmsKeyId = "string",
PreferredMaintenanceWindow = "string",
PromotionTier = 0,
Region = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := docdb.NewClusterInstance(ctx, "clusterInstanceResource", &docdb.ClusterInstanceArgs{
ClusterIdentifier: pulumi.String("string"),
InstanceClass: pulumi.String("string"),
Engine: pulumi.String("string"),
Identifier: pulumi.String("string"),
CertificateRotationRestart: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
CopyTagsToSnapshot: pulumi.Bool(false),
EnablePerformanceInsights: pulumi.Bool(false),
ApplyImmediately: pulumi.Bool(false),
CaCertIdentifier: pulumi.String("string"),
IdentifierPrefix: pulumi.String("string"),
AutoMinorVersionUpgrade: pulumi.Bool(false),
PerformanceInsightsKmsKeyId: pulumi.String("string"),
PreferredMaintenanceWindow: pulumi.String("string"),
PromotionTier: pulumi.Int(0),
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var clusterInstanceResource = new com.pulumi.aws.docdb.ClusterInstance("clusterInstanceResource", com.pulumi.aws.docdb.ClusterInstanceArgs.builder()
.clusterIdentifier("string")
.instanceClass("string")
.engine("string")
.identifier("string")
.certificateRotationRestart("string")
.availabilityZone("string")
.copyTagsToSnapshot(false)
.enablePerformanceInsights(false)
.applyImmediately(false)
.caCertIdentifier("string")
.identifierPrefix("string")
.autoMinorVersionUpgrade(false)
.performanceInsightsKmsKeyId("string")
.preferredMaintenanceWindow("string")
.promotionTier(0)
.region("string")
.tags(Map.of("string", "string"))
.build());
cluster_instance_resource = aws.docdb.ClusterInstance("clusterInstanceResource",
cluster_identifier="string",
instance_class="string",
engine="string",
identifier="string",
certificate_rotation_restart="string",
availability_zone="string",
copy_tags_to_snapshot=False,
enable_performance_insights=False,
apply_immediately=False,
ca_cert_identifier="string",
identifier_prefix="string",
auto_minor_version_upgrade=False,
performance_insights_kms_key_id="string",
preferred_maintenance_window="string",
promotion_tier=0,
region="string",
tags={
"string": "string",
})
const clusterInstanceResource = new aws.docdb.ClusterInstance("clusterInstanceResource", {
clusterIdentifier: "string",
instanceClass: "string",
engine: "string",
identifier: "string",
certificateRotationRestart: "string",
availabilityZone: "string",
copyTagsToSnapshot: false,
enablePerformanceInsights: false,
applyImmediately: false,
caCertIdentifier: "string",
identifierPrefix: "string",
autoMinorVersionUpgrade: false,
performanceInsightsKmsKeyId: "string",
preferredMaintenanceWindow: "string",
promotionTier: 0,
region: "string",
tags: {
string: "string",
},
});
type: aws:docdb:ClusterInstance
properties:
applyImmediately: false
autoMinorVersionUpgrade: false
availabilityZone: string
caCertIdentifier: string
certificateRotationRestart: string
clusterIdentifier: string
copyTagsToSnapshot: false
enablePerformanceInsights: false
engine: string
identifier: string
identifierPrefix: string
instanceClass: string
performanceInsightsKmsKeyId: string
preferredMaintenanceWindow: string
promotionTier: 0
region: string
tags:
string: string
ClusterInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ClusterInstance resource accepts the following input properties:
- Cluster
Identifier string - Identifier of the
aws.docdb.Clusterin which to launch this instance. - Instance
Class string - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - Apply
Immediately bool - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - Auto
Minor boolVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - Availability
Zone string - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- Certificate
Rotation stringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - bool
- Copy all DB instance
tagsto snapshots. Default isfalse. - Enable
Performance boolInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - Engine string
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - Identifier string
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- Identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier. - Performance
Insights stringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- Preferred
Maintenance stringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- Promotion
Tier int - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Cluster
Identifier string - Identifier of the
aws.docdb.Clusterin which to launch this instance. - Instance
Class string - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - Apply
Immediately bool - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - Auto
Minor boolVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - Availability
Zone string - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- Certificate
Rotation stringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - bool
- Copy all DB instance
tagsto snapshots. Default isfalse. - Enable
Performance boolInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - Engine string
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - Identifier string
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- Identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier. - Performance
Insights stringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- Preferred
Maintenance stringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- Promotion
Tier int - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Identifier String - Identifier of the
aws.docdb.Clusterin which to launch this instance. - instance
Class String - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - apply
Immediately Boolean - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - auto
Minor BooleanVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - availability
Zone String - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert StringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- certificate
Rotation StringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - Boolean
- Copy all DB instance
tagsto snapshots. Default isfalse. - enable
Performance BooleanInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - engine String
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - identifier String
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- identifier
Prefix String - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier. - performance
Insights StringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- preferred
Maintenance StringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier Integer - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Identifier string - Identifier of the
aws.docdb.Clusterin which to launch this instance. - instance
Class string - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - apply
Immediately boolean - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - auto
Minor booleanVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - availability
Zone string - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert stringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- certificate
Rotation stringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - boolean
- Copy all DB instance
tagsto snapshots. Default isfalse. - enable
Performance booleanInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - engine string
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - identifier string
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- identifier
Prefix string - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier. - performance
Insights stringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- preferred
Maintenance stringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier number - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster_
identifier str - Identifier of the
aws.docdb.Clusterin which to launch this instance. - instance_
class str - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - apply_
immediately bool - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - auto_
minor_ boolversion_ upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - availability_
zone str - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca_
cert_ stridentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- certificate_
rotation_ strrestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - bool
- Copy all DB instance
tagsto snapshots. Default isfalse. - enable_
performance_ boolinsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - engine str
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - identifier str
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- identifier_
prefix str - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier. - performance_
insights_ strkms_ key_ id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- preferred_
maintenance_ strwindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion_
tier int - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Identifier String - Identifier of the
aws.docdb.Clusterin which to launch this instance. - instance
Class String - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - apply
Immediately Boolean - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - auto
Minor BooleanVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - availability
Zone String - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert StringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- certificate
Rotation StringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - Boolean
- Copy all DB instance
tagsto snapshots. Default isfalse. - enable
Performance BooleanInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - engine String
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - identifier String
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- identifier
Prefix String - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier. - performance
Insights StringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- preferred
Maintenance StringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier Number - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterInstance resource produces the following output properties:
- Arn string
- ARN of cluster instance
- Db
Subnet stringGroup Name - DB subnet group to associate with this DB instance.
- Dbi
Resource stringId - Region-unique, immutable identifier for the DB instance.
- Endpoint string
- DNS address for this instance. May not be writable
- Engine
Version string - Database engine version
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - ARN for the KMS encryption key if one is set to the cluster.
- Port int
- Database port
- Preferred
Backup stringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- Publicly
Accessible bool - Storage
Encrypted bool - Whether the DB cluster is encrypted.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Writer bool
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- Arn string
- ARN of cluster instance
- Db
Subnet stringGroup Name - DB subnet group to associate with this DB instance.
- Dbi
Resource stringId - Region-unique, immutable identifier for the DB instance.
- Endpoint string
- DNS address for this instance. May not be writable
- Engine
Version string - Database engine version
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - ARN for the KMS encryption key if one is set to the cluster.
- Port int
- Database port
- Preferred
Backup stringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- Publicly
Accessible bool - Storage
Encrypted bool - Whether the DB cluster is encrypted.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Writer bool
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- arn String
- ARN of cluster instance
- db
Subnet StringGroup Name - DB subnet group to associate with this DB instance.
- dbi
Resource StringId - Region-unique, immutable identifier for the DB instance.
- endpoint String
- DNS address for this instance. May not be writable
- engine
Version String - Database engine version
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - ARN for the KMS encryption key if one is set to the cluster.
- port Integer
- Database port
- preferred
Backup StringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- publicly
Accessible Boolean - storage
Encrypted Boolean - Whether the DB cluster is encrypted.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - writer Boolean
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- arn string
- ARN of cluster instance
- db
Subnet stringGroup Name - DB subnet group to associate with this DB instance.
- dbi
Resource stringId - Region-unique, immutable identifier for the DB instance.
- endpoint string
- DNS address for this instance. May not be writable
- engine
Version string - Database engine version
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringId - ARN for the KMS encryption key if one is set to the cluster.
- port number
- Database port
- preferred
Backup stringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- publicly
Accessible boolean - storage
Encrypted boolean - Whether the DB cluster is encrypted.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - writer boolean
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- arn str
- ARN of cluster instance
- db_
subnet_ strgroup_ name - DB subnet group to associate with this DB instance.
- dbi_
resource_ strid - Region-unique, immutable identifier for the DB instance.
- endpoint str
- DNS address for this instance. May not be writable
- engine_
version str - Database engine version
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strid - ARN for the KMS encryption key if one is set to the cluster.
- port int
- Database port
- preferred_
backup_ strwindow - Daily time range during which automated backups are created if automated backups are enabled.
- publicly_
accessible bool - storage_
encrypted bool - Whether the DB cluster is encrypted.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - writer bool
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- arn String
- ARN of cluster instance
- db
Subnet StringGroup Name - DB subnet group to associate with this DB instance.
- dbi
Resource StringId - Region-unique, immutable identifier for the DB instance.
- endpoint String
- DNS address for this instance. May not be writable
- engine
Version String - Database engine version
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - ARN for the KMS encryption key if one is set to the cluster.
- port Number
- Database port
- preferred
Backup StringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- publicly
Accessible Boolean - storage
Encrypted Boolean - Whether the DB cluster is encrypted.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - writer Boolean
- Whether this instance is writable.
Falseindicates this instance is a read replica.
Look up 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@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apply_immediately: Optional[bool] = None,
arn: Optional[str] = None,
auto_minor_version_upgrade: Optional[bool] = None,
availability_zone: Optional[str] = None,
ca_cert_identifier: Optional[str] = None,
certificate_rotation_restart: Optional[str] = None,
cluster_identifier: Optional[str] = None,
copy_tags_to_snapshot: Optional[bool] = None,
db_subnet_group_name: Optional[str] = None,
dbi_resource_id: Optional[str] = None,
enable_performance_insights: Optional[bool] = None,
endpoint: Optional[str] = None,
engine: Optional[str] = None,
engine_version: Optional[str] = None,
identifier: Optional[str] = None,
identifier_prefix: Optional[str] = None,
instance_class: Optional[str] = None,
kms_key_id: Optional[str] = None,
performance_insights_kms_key_id: Optional[str] = None,
port: Optional[int] = None,
preferred_backup_window: Optional[str] = None,
preferred_maintenance_window: Optional[str] = None,
promotion_tier: Optional[int] = None,
publicly_accessible: Optional[bool] = None,
region: Optional[str] = None,
storage_encrypted: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
writer: Optional[bool] = None) -> ClusterInstancefunc 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)public static ClusterInstance get(String name, Output<String> id, ClusterInstanceState state, CustomResourceOptions options)resources: _: type: aws:docdb:ClusterInstance get: id: ${id}- 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.
- 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.
- Apply
Immediately bool - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - Arn string
- ARN of cluster instance
- Auto
Minor boolVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - Availability
Zone string - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- Certificate
Rotation stringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - Cluster
Identifier string - Identifier of the
aws.docdb.Clusterin which to launch this instance. - bool
- Copy all DB instance
tagsto snapshots. Default isfalse. - Db
Subnet stringGroup Name - DB subnet group to associate with this DB instance.
- Dbi
Resource stringId - Region-unique, immutable identifier for the DB instance.
- Enable
Performance boolInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - Endpoint string
- DNS address for this instance. May not be writable
- Engine string
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - Engine
Version string - Database engine version
- Identifier string
- The identifier for the DocumentDB instance, if omitted, the 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 - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - Kms
Key stringId - ARN for the KMS encryption key if one is set to the cluster.
- Performance
Insights stringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- Port int
- Database port
- Preferred
Backup stringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- Preferred
Maintenance stringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- Promotion
Tier int - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - Publicly
Accessible bool - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Storage
Encrypted bool - Whether the DB cluster is encrypted.
- Dictionary<string, string>
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Writer bool
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- Apply
Immediately bool - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - Arn string
- ARN of cluster instance
- Auto
Minor boolVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - Availability
Zone string - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- Ca
Cert stringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- Certificate
Rotation stringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - Cluster
Identifier string - Identifier of the
aws.docdb.Clusterin which to launch this instance. - bool
- Copy all DB instance
tagsto snapshots. Default isfalse. - Db
Subnet stringGroup Name - DB subnet group to associate with this DB instance.
- Dbi
Resource stringId - Region-unique, immutable identifier for the DB instance.
- Enable
Performance boolInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - Endpoint string
- DNS address for this instance. May not be writable
- Engine string
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - Engine
Version string - Database engine version
- Identifier string
- The identifier for the DocumentDB instance, if omitted, the 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 - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - Kms
Key stringId - ARN for the KMS encryption key if one is set to the cluster.
- Performance
Insights stringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- Port int
- Database port
- Preferred
Backup stringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- Preferred
Maintenance stringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- Promotion
Tier int - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - Publicly
Accessible bool - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Storage
Encrypted bool - Whether the DB cluster is encrypted.
- map[string]string
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Writer bool
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- apply
Immediately Boolean - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - arn String
- ARN of cluster instance
- auto
Minor BooleanVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - availability
Zone String - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert StringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- certificate
Rotation StringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - cluster
Identifier String - Identifier of the
aws.docdb.Clusterin which to launch this instance. - Boolean
- Copy all DB instance
tagsto snapshots. Default isfalse. - db
Subnet StringGroup Name - DB subnet group to associate with this DB instance.
- dbi
Resource StringId - Region-unique, immutable identifier for the DB instance.
- enable
Performance BooleanInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - endpoint String
- DNS address for this instance. May not be writable
- engine String
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - engine
Version String - Database engine version
- identifier String
- The identifier for the DocumentDB instance, if omitted, the 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 - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - kms
Key StringId - ARN for the KMS encryption key if one is set to the cluster.
- performance
Insights StringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- port Integer
- Database port
- preferred
Backup StringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- preferred
Maintenance StringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier Integer - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - publicly
Accessible Boolean - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Encrypted Boolean - Whether the DB cluster is encrypted.
- Map<String,String>
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - writer Boolean
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- apply
Immediately boolean - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - arn string
- ARN of cluster instance
- auto
Minor booleanVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - availability
Zone string - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert stringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- certificate
Rotation stringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - cluster
Identifier string - Identifier of the
aws.docdb.Clusterin which to launch this instance. - boolean
- Copy all DB instance
tagsto snapshots. Default isfalse. - db
Subnet stringGroup Name - DB subnet group to associate with this DB instance.
- dbi
Resource stringId - Region-unique, immutable identifier for the DB instance.
- enable
Performance booleanInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - endpoint string
- DNS address for this instance. May not be writable
- engine string
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - engine
Version string - Database engine version
- identifier string
- The identifier for the DocumentDB instance, if omitted, the 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 - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - kms
Key stringId - ARN for the KMS encryption key if one is set to the cluster.
- performance
Insights stringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- port number
- Database port
- preferred
Backup stringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- preferred
Maintenance stringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier number - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - publicly
Accessible boolean - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Encrypted boolean - Whether the DB cluster is encrypted.
- {[key: string]: string}
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - writer boolean
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- apply_
immediately bool - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - arn str
- ARN of cluster instance
- auto_
minor_ boolversion_ upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - availability_
zone str - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca_
cert_ stridentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- certificate_
rotation_ strrestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - cluster_
identifier str - Identifier of the
aws.docdb.Clusterin which to launch this instance. - bool
- Copy all DB instance
tagsto snapshots. Default isfalse. - db_
subnet_ strgroup_ name - DB subnet group to associate with this DB instance.
- dbi_
resource_ strid - Region-unique, immutable identifier for the DB instance.
- enable_
performance_ boolinsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - endpoint str
- DNS address for this instance. May not be writable
- engine str
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - engine_
version str - Database engine version
- identifier str
- The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
- identifier_
prefix str - Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier. - instance_
class str - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - kms_
key_ strid - ARN for the KMS encryption key if one is set to the cluster.
- performance_
insights_ strkms_ key_ id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- port int
- Database port
- preferred_
backup_ strwindow - Daily time range during which automated backups are created if automated backups are enabled.
- preferred_
maintenance_ strwindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion_
tier int - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - publicly_
accessible bool - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage_
encrypted bool - Whether the DB cluster is encrypted.
- Mapping[str, str]
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - writer bool
- Whether this instance is writable.
Falseindicates this instance is a read replica.
- apply
Immediately Boolean - Whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. - arn String
- ARN of cluster instance
- auto
Minor BooleanVersion Upgrade - Parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default
true. - availability
Zone String - EC2 Availability Zone that the DB instance is created in. See docs about the details.
- ca
Cert StringIdentifier - Identifier of the certificate authority (CA) certificate for the DB instance.
- certificate
Rotation StringRestart - Whether to restart the DB instance when rotating its SSL/TLS certificate. By default, AWS restarts the DB instance when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set to
falseonly if you are not using SSL/TLS to connect to the DB instance. - cluster
Identifier String - Identifier of the
aws.docdb.Clusterin which to launch this instance. - Boolean
- Copy all DB instance
tagsto snapshots. Default isfalse. - db
Subnet StringGroup Name - DB subnet group to associate with this DB instance.
- dbi
Resource StringId - Region-unique, immutable identifier for the DB instance.
- enable
Performance BooleanInsights - Value that indicates whether to enable Performance Insights for the DB Instance. Default
false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - endpoint String
- DNS address for this instance. May not be writable
- engine String
- Name of the database engine to be used for the DocumentDB instance. Defaults to
docdb. Valid Values:docdb. - engine
Version String - Database engine version
- identifier String
- The identifier for the DocumentDB instance, if omitted, the 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 - Instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. See the
aws.docdb.getOrderableDbInstancedata source. See AWS Documentation for complete details. - kms
Key StringId - ARN for the KMS encryption key if one is set to the cluster.
- performance
Insights StringKms Key Id - 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 PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
- port Number
- Database port
- preferred
Backup StringWindow - Daily time range during which automated backups are created if automated backups are enabled.
- preferred
Maintenance StringWindow - Window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
- promotion
Tier Number - Failover Priority setting on instance level. Default
0. The reader who has lower tier has higher priority to get promoter to writer. - publicly
Accessible Boolean - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- storage
Encrypted Boolean - Whether the DB cluster is encrypted.
- Map<String>
- Map of tags to assign to the instance. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - writer Boolean
- Whether this instance is writable.
Falseindicates this instance is a read replica.
Import
Using pulumi import, import DocumentDB Cluster Instances using the identifier. For example:
$ pulumi import aws:docdb/clusterInstance:ClusterInstance prod_instance_1 aurora-cluster-instance-1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Wednesday, Mar 11, 2026 by Pulumi
