Resource: aws_db_cluster_snapshot

Manages an RDS database cluster snapshot for Aurora clusters. For managing RDS database instance snapshots, see the aws_db_snapshot resource.

Example Usage

resource "aws_db_cluster_snapshot" "example" {
  db_cluster_identifier          = aws_rds_cluster.example.id
  db_cluster_snapshot_identifier = "resourcetestsnapshot1234"
}

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 aws_db_cluster_snapshot using the cluster snapshot identifier. For example:

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

Using terraform import, import aws_db_cluster_snapshot using the cluster snapshot identifier. For example:

% terraform import aws_db_cluster_snapshot.example my-cluster-snapshot