Description
New provisioned Redshift clusters use encryption by default. Check the actual settings on existing clusters and snapshots before changing Terraform.
Potential impact
An unencrypted snapshot can expose the data it contains. Losing access to a KMS key can also prevent reads or recovery.
Remediation
Set encrypted = true and select any KMS key your policy requires. For an older unencrypted cluster, review the Terraform plan and use a supported encryption conversion. Preserve backups and key access. Redshift migrates the data in read-only mode, so schedule writes accordingly. Verify encryption, data consistency, application connections and recovery afterward.
Examples
Choose a single-node type supported in the Region. Supply the password securely, restrict access to Terraform state, and configure network and backup policies separately.
Request encryption disabled
resource "aws_redshift_cluster" "analytics" {
cluster_identifier = "tf-redshift-cluster"
database_name = "mydb"
master_username = "foo"
master_password = var.redshift_password
node_type = var.redshift_node_type
cluster_type = "single-node"
encrypted = false
}
The current creation API rejects the explicit encrypted = false request.
Request encryption enabled
resource "aws_redshift_cluster" "analytics" {
cluster_identifier = "tf-redshift-cluster"
database_name = "mydb"
master_username = "foo"
master_password = var.redshift_password
node_type = var.redshift_node_type
cluster_type = "single-node"
encrypted = true
}
encrypted = true requests encryption. Check the key on the deployed cluster and its new snapshots.