Redshift cluster without VPC This product is not supported for your selected
Datadog site . (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください 。
Id: terraform-aws-redshift-cluster-without-vpc
Provider: AWS
Platform: Terraform
Severity: Low
Category: Insecure Configurations
Learn More Description Amazon Redshift clusters should be deployed within an Amazon VPC to ensure network isolation and control over access to the cluster. If the vpc_security_group_ids and cluster_subnet_group_name attributes are not specified, the cluster is created outside a VPC and could be exposed to the public internet, increasing the risk of unauthorized access and data breaches. A secure configuration includes the following attributes:
resource "aws_redshift_cluster" "secure_example" {
// other attributes
vpc_security_group_ids = [aws_security_group.redshift.id]
cluster_subnet_group_name = aws_redshift_subnet_group.redshift_subnet_group.id
}
Compliant Code Examples resource "aws_redshift_cluster" "negative1" {
cluster_identifier = "tf-redshift-cluster"
database_name = "mydb"
master_username = "foo"
master_password = "Mustbe8characters"
node_type = "dc1.large"
cluster_type = "single-node"
logging {
enable = true
bucket_name = "nameOfAnExistingS3Bucket"
}
vpc_security_group_ids = [
aws_security_group . redshift . id
]
cluster_subnet_group_name = aws_redshift_subnet_group . redshift_subnet_group . id
}
Non-Compliant Code Examples resource "aws_redshift_cluster" "positive1" {
cluster_identifier = "tf-redshift-cluster"
database_name = "mydb"
master_username = "foo"
master_password = "Mustbe8characters"
node_type = "dc1.large"
cluster_type = "single-node"
logging {
enable = true
bucket_name = "nameOfAnExistingS3Bucket"
}
}