Redshift Serverless namespaces should export logs to CloudWatch Logs
Flags Amazon Redshift Serverless namespaces that do not export connection and user logs to CloudWatch Logs. Without these exports, failed sign-ins and changes to database users leave no record outside the namespace.
- service
- RedshiftServerless
- severity
- Medium
- scope
- evaluated in every region
How to fix it
- Overwrites existing settings: The CLI call and Terraform's log_exports set the namespace's whole list, so add useractivitylog to them if the namespace already exports that log.
In the console
Redshift Serverless → Namespace configuration → the namespace → Security and encryption → Edit
- Audit logging
- Connection log and user log selected; the user activity log is optional for this check
With the AWS CLI
aws redshift-serverless update-namespace --namespace-name <namespace-name> --log-exports connectionlog userlog --region <region>With Terraform
resource "aws_redshiftserverless_namespace" "this" {
namespace_name = var.namespace_name
log_exports = ["connectionlog", "userlog"]
}
See which of your accounts this check is failing on.
Book a live scan