Enhanced Monitoring
Enhanced Monitoring
Enhanced Monitoring collects OS-level metrics from each DB instance at intervals you control. The module creates the required IAM role automatically when monitoring is enabled.Cluster-level intervalPer-instance overrideIndividual instances can override the cluster interval via the IAM role creationExample (from the
Interval in seconds between Enhanced Monitoring metric collection for the cluster. Set to
0 to disable. Valid values: 0, 1, 5, 10, 15, 30, 60.monitoring_interval key in the instances map:Determines whether to create the IAM role for RDS Enhanced Monitoring. The role is only created when
cluster_monitoring_interval > 0 or any instance in the instances map has a non-zero monitoring_interval.ARN of an existing IAM role to use for Enhanced Monitoring. Use this when
create_monitoring_role is false.Friendly name for the monitoring role. Defaults to
"<name>-monitor".Description of the monitoring IAM role.
IAM path for the monitoring role.
ARN of the IAM policy to use as a permissions boundary for the monitoring role.
Maximum session duration in seconds for the monitoring role. The autoscaling example sets this to
7200.autoscaling example):Performance Insights
Performance Insights
Performance Insights provides a visual database load dashboard that helps you assess and tune Aurora performance.Cluster-level settingsPer-instance overridesEach instance in the Example:
Enables Performance Insights for the RDS cluster.
KMS key ID to encrypt Performance Insights data. Defaults to the AWS-managed
aws/rds key when omitted.Number of days to retain Performance Insights data. Valid values:
7— 7 days (free tier default)month * 31— where month is 1–23 (e.g.,93for 3 months)731— 2 years
instances map can override the cluster Performance Insights settings:CloudWatch Logs
CloudWatch Logs
Export Aurora log streams to CloudWatch Logs for centralized storage and analysis.Example (from the
Log types to export to CloudWatch. Supported values:
audit— Aurora MySQL audit logerror— MySQL or PostgreSQL error loggeneral— MySQL general query logslowquery— MySQL slow query logpostgresql— Aurora PostgreSQL log
Whether the module should create a CloudWatch log group for each exported log type. Log groups are created with the path
/aws/rds/cluster/<name>/<log-type>.Log groups are not created when
cluster_use_name_prefix is true, because the final cluster name is not known until apply time. In that case, let RDS create the log groups automatically or create them separately.Number of days to retain logs in the CloudWatch log group.
ARN of a KMS key to encrypt the CloudWatch log group data at rest.
Log class for the log group. Valid values:
STANDARD, INFREQUENT_ACCESS.postgresql example):Activity Streams
Activity Streams
Database Activity Streams provide a near-real-time stream of activity in your Aurora cluster to an Amazon Kinesis data stream.The Kinesis stream name is available via the output
Configuration for the cluster activity stream. Setting this variable to a non-null value enables the stream.
kms_key_id(required) — KMS key ID used to encrypt the activity stream.mode(required) — Synchronicity mode. Use"async"for asynchronous mode or"sync"for synchronous mode.include_audit_fields(optional, defaultfalse) — Whether to include engine-native audit fields in the data stream.
db_cluster_activity_stream_kinesis_stream_name.Example (from the postgresql example):Database Insights
Database Insights
Database Insights provides advanced performance analytics for Aurora clusters.
The mode of Database Insights to enable. Valid values:
standard— standard analyticsadvanced— advanced analytics (additional cost, requires Performance Insights to be enabled)

