Resource: aws_docdbelastic_cluster

Manages an AWS DocDB (DocumentDB) Elastic Cluster.

Example Usage

Basic Usage

resource "aws_docdbelastic_cluster" "example" {
  name                = "my-docdb-cluster"
  admin_user_name     = "foo"
  admin_user_password = "mustbeeightchars"
  auth_type           = "PLAIN_TEXT"
  shard_capacity      = 2
  shard_count         = 1
}

Argument Reference

For more detailed documentation about each argument, refer to the AWS official documentation.

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import OpenSearchServerless Access Policy using the name and type arguments separated by a slash (/). For example:

import {
  to = aws_docdbelastic_cluster.example
  id = "arn:aws:docdb-elastic:us-east-1:000011112222:cluster/12345678-7abc-def0-1234-56789abcdef"
}

Using terraform import, import DocDB (DocumentDB) Elastic Cluster using the arn argument. For example,

% terraform import aws_docdbelastic_cluster.example arn:aws:docdb-elastic:us-east-1:000011112222:cluster/12345678-7abc-def0-1234-56789abcdef