Resource: aws_redshift_cluster_snapshot

Creates a Redshift cluster snapshot

Example Usage

resource "aws_redshift_cluster_snapshot" "example" {
  cluster_snapshot_name = "example"
  cluster_snapshot_content = jsonencode(
    {
      AllowDBUserOverride = "1"
      Client_ID           = "ExampleClientID"
      App_ID              = "example"
    }
  )
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import Redshift Cluster Snapshots using snapshot_identifier. For example:

import {
  to = aws_redshift_cluster_snapshot.test
  id = "example"
}

Using terraform import, import Redshift Cluster Snapshots using snapshot_identifier. For example:

% terraform import aws_redshift_cluster_snapshot.test example