Ensure Amazon Redshift clusters are not publicly accessible

Error: AWS Redshift cluster is publicly accessible

Bridgecrew Policy ID: BC_AWS_NETWORKING_44
Checkov Check ID: CKV_AWS_87
Severity: LOW

AWS Redshift cluster is publicly accessible

Description

We recommend you ensure your Amazon Redshift Clusters are not publicly accessible.

Fix - Buildtime

Terraform

  • Resource: aws_redshift_cluster
  • Argument: publicly_accessible
resource "aws_redshift_cluster" "default" {
  cluster_identifier = "tf-redshift-cluster"
  database_name      = "mydb"
  master_username    = "foo"
  master_password    = "Mustbe8characters"
  node_type          = "dc1.large"
  cluster_type       = "single-node"
+ publicly_accessible= "false"
}

Did this page help you?