Redshift encryption settings need review

Check actual Redshift cluster and snapshot encryption, and apply the required KMS encryption through supported tools.

Description

Redshift encrypts newly provisioned clusters by default and rejects a request to create one without encryption. Check existing clusters and snapshot restores separately.

Potential impact

An older unencrypted cluster or snapshot can still expose stored data. An unsupported module option can leave an existing cluster unchanged.

Remediation

For an existing unencrypted cluster, use ModifyCluster or a tool that supports the encryption change. The modify operation in community.aws 1.5.0 does not send encrypted. Verify snapshot and key access before migrating. Plan for read-only operation while Redshift moves the data, then check encryption and database access. Configure TLS and network and database permissions separately.

Examples

Supply the password from a secure variable. Set redshift_node_type to a single-node type supported by the installed module and Region, and configure networking and authentication.

Disabling encryption is rejected by the current API

yaml
- name: Basic cluster provisioning example
  community.aws.redshift:
    identifier: tf-redshift-cluster
    command: create
    db_name: mydb
    username: foo
    password: "{{ redshift_admin_password }}"
    node_type: "{{ redshift_node_type }}"
    cluster_type: single-node
    encrypted: false

The current CreateCluster API rejects encrypted: false.

Request encryption for a new cluster

yaml
- name: Basic cluster provisioning example
  community.aws.redshift:
    identifier: tf-redshift-cluster
    command: create
    db_name: mydb
    username: foo
    password: "{{ redshift_admin_password }}"
    node_type: "{{ redshift_node_type }}"
    cluster_type: single-node
    encrypted: true

encrypted: true requests encryption for a new cluster.

References