Data Source: aws_redshift_cluster

Provides details about a specific redshift cluster.

Example Usage

data "aws_redshift_cluster" "example" {
  cluster_identifier = "example-cluster"
}

resource "aws_kinesis_firehose_delivery_stream" "example_stream" {
  name        = "terraform-kinesis-firehose-example-stream"
  destination = "redshift"

  redshift_configuration {
    role_arn           = aws_iam_role.firehose_role.arn
    cluster_jdbcurl    = "jdbc:redshift://${data.aws_redshift_cluster.example.endpoint}/${data.aws_redshift_cluster.example.database_name}"
    username           = "exampleuser"
    password           = "Exampl3Pass"
    data_table_name    = "example-table"
    copy_options       = "delimiter '|'" # the default delimiter
    data_table_columns = "example-col"

    s3_configuration {
      role_arn           = aws_iam_role.firehose_role.arn
      bucket_arn         = aws_s3_bucket.bucket.arn
      buffer_size        = 10
      buffer_interval    = 400
      compression_format = "GZIP"
    }
  }
}

Argument Reference

This data source supports the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Cluster nodes (for cluster_nodes) support the following attributes: