Resource: aws_memorydb_snapshot

Provides a MemoryDB Snapshot.

More information about snapshot and restore can be found in the MemoryDB User Guide.

Example Usage

resource "aws_memorydb_snapshot" "example" {
  cluster_name = aws_memorydb_cluster.example.name
  name         = "my-snapshot"
}

Argument Reference

This resource supports the following arguments:

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

import {
  to = aws_memorydb_snapshot.example
  id = "my-snapshot"
}

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

% terraform import aws_memorydb_snapshot.example my-snapshot