Neptune audit log export needs review

Check both Neptune audit log generation and export to CloudWatch Logs.

Description

To retain Amazon Neptune audit logs in CloudWatch Logs, enable both audit log generation and export.

Potential impact

Missing audit records make it hard to determine who made a database request.

Remediation

Set the cluster parameter neptune_enable_audit_log to 1 and schedule a reboot of the DB instances. Add audit to EnableCloudwatchLogsExports. Make a test request, confirm its log arrives, and set retention and reader access.

Examples

The examples change only the export. Supply the instances, network and parameter group separately. Both examples set StorageEncrypted to false, so review encryption at rest separately.

Before

json
{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Resources": {
    "Prod": {
      "Type": "AWS::Neptune::DBCluster",
      "Properties": {
        "DBClusterIdentifier": "String",
        "Port": 10000,
        "StorageEncrypted": false
      }
    }
  }
}

After

json
{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Resources": {
    "Prod": {
      "Type": "AWS::Neptune::DBCluster",
      "Properties": {
        "DBClusterIdentifier": "String",
        "EnableCloudwatchLogsExports": ["audit"],
        "Port": 10000,
        "StorageEncrypted": false
      }
    }
  }
}

References