Resource: aws_memorydb_cluster

Provides a MemoryDB Cluster.

More information about MemoryDB can be found in the Developer Guide.

Example Usage

resource "aws_memorydb_cluster" "example" {
  acl_name                 = "open-access"
  name                     = "my-cluster"
  node_type                = "db.t4g.small"
  num_shards               = 2
  security_group_ids       = [aws_security_group.example.id]
  snapshot_retention_limit = 7
  subnet_group_name        = aws_memorydb_subnet_group.example.id
}

Argument Reference

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 a cluster using the name. For example:

import {
  to = aws_memorydb_cluster.example
  id = "my-cluster"
}

Using terraform import, import a cluster using the name. For example:

% terraform import aws_memorydb_cluster.example my-cluster