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
Export the namespace's connection log and user log to CloudWatch Logs, which is the only destination Redshift Serverless offers. Redshift creates the log group itself. The user activity log can be exported too, but this check does not require it, because the control asks only for the connection and user logs.
In the console
Redshift Serverless → Namespace configuration → the namespace → Security and encryption → Edit
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 demo