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"
}