AWS Amazon Redshift Cluster

This page shows how to write Terraform and CloudFormation for Amazon Redshift Cluster and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_redshift_cluster)

Provides a Redshift Cluster Resource.

Note: All arguments including the username and password will be stored in the raw state as plain-text. Read more about sensitive data in state.

Parameters

Example Usage (from GitHub)

github-iconSonarSource/sonar-iac
resource "aws_redshift_cluster" "redshift_cluster_disabling_logs" {
  cluster_identifier = "redshift-cluster"
  logging {
    enable = false # Noncompliant {{Make sure that disabling logging is safe here.}}
  }
}
github-icongilyas/infracost
resource "aws_redshift_cluster" "ca" {
  cluster_identifier = "tf-ca-cluster"
  database_name      = "mydb"
  master_username    = "foo"
  master_password    = "Mustbe8characters"
  node_type          = "dc2.large"
github-iconstorebot/pr_demo_flat
resource "aws_redshift_cluster" "redshiftEncryptedWithNoKms" {
  cluster_identifier = "tf-redshift-cluster"
  database_name      = "mydb"
  master_username    = "foo"
  master_password    = "Mustbe8characters"
  node_type          = "dc1.large"
github-iconinfracost/infracost
resource "aws_redshift_cluster" "ca" {
  cluster_identifier = "tf-ca-cluster"
  database_name      = "mydb"
  master_username    = "foo"
  master_password    = "Mustbe8characters"
  node_type          = "dc2.large"
github-iconffsclyh/config-lint
resource "aws_redshift_cluster" "encrypted_not_set" {
  cluster_identifier = "my-redshift-cluster"
  database_name      = "mydb"
  master_username    = "admin"
  master_password    = "F0obarbaz"
  node_type          = "dc2.large"

CloudFormation Example (AWS::Redshift::Cluster)

Specifies a cluster. A cluster is a fully managed data warehouse that consists of a set of compute nodes.

To create a cluster in Virtual Private Cloud (VPC), you must provide a cluster subnet group name. The cluster subnet group identifies the subnets of your VPC that Amazon Redshift uses when creating the cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

Parameters

Frequently asked questions

What is AWS Amazon Redshift Cluster?

AWS Amazon Redshift Cluster is a resource for Amazon Redshift of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon Redshift Cluster?

For Terraform, the SonarSource/sonar-iac, gilyas/infracost and storebot/pr_demo_flat source code examples are useful. See the Terraform Example section for further details.