RDS database cluster not encrypted This product is not supported for your selected
Datadog site . (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください 。
Id: terraform-aws-rds-database-cluster-not-encrypted
Cloud Provider: AWS
Platform: Terraform
Severity: High
Category: Encryption
Learn More Description Amazon RDS database clusters should be encrypted at rest to protect sensitive data from unauthorized access if storage is compromised. When not properly configured with the storage_encrypted attribute set to true, database contents remain in plaintext, potentially exposing sensitive information to attackers who gain access to the underlying storage. To secure your RDS cluster, ensure encryption is enabled, as shown below:
resource "aws_rds_cluster" "secure_example" {
// Required configuration
cluster_identifier = "example"
engine = "aurora"
master_password = "securepassword"
master_username = "admin"
// Security configuration
storage_encrypted = true // Enables encryption at rest
}
Compliant Code Examples resource "aws_db_cluster_snapshot" "negative" {
db_cluster_identifier = aws_rds_cluster . example . id
db_cluster_snapshot_identifier = "resourcetestsnapshot1234"
}
resource "aws_rds_cluster" "example" {
cluster_identifier = "example"
db_subnet_group_name = aws_db_subnet_group . example . name
engine_mode = "multimaster"
master_password = "barbarbarbar"
master_username = "foo"
skip_final_snapshot = true
storage_encrypted = true
}
Non-Compliant Code Examples resource "aws_db_cluster_snapshot" "positive2" {
db_cluster_identifier = aws_rds_cluster . example3 . id
db_cluster_snapshot_identifier = "resourcetestsnapshot1234"
}
resource "aws_rds_cluster" "example3" {
cluster_identifier = "example"
db_subnet_group_name = aws_db_subnet_group . example . name
engine_mode = "multimaster"
master_password = "barbarbarbar"
master_username = "foo"
skip_final_snapshot = true
storage_encrypted = false
}
resource "aws_db_cluster_snapshot" "positive1" {
db_cluster_identifier = aws_rds_cluster . example2 . id
db_cluster_snapshot_identifier = "resourcetestsnapshot1234"
}
resource "aws_rds_cluster" "example2" {
cluster_identifier = "example"
db_subnet_group_name = aws_db_subnet_group . example . name
engine_mode = "multimaster"
master_password = "barbarbarbar"
master_username = "foo"
skip_final_snapshot = true
}