Creates useful CloudWatch Alarms for an RDS Postgres database.
Name | Version |
---|---|
terraform | >= 1.6.2 |
aws | ~> 4.0 |
Name | Version |
---|---|
aws | ~> 4.0 |
Name | Type |
---|---|
aws_cloudwatch_metric_alarm.check_cpu_balance | resource |
aws_cloudwatch_metric_alarm.cpu | resource |
aws_cloudwatch_metric_alarm.db_connections_limit | resource |
aws_cloudwatch_metric_alarm.disk | resource |
aws_cloudwatch_metric_alarm.memory | resource |
aws_ec2_instance_type.instance_attributes | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
alarm_actions | SNS topic ARNs or other actions to invoke for alarms | list(string) |
[] |
no |
allocated_storage | Size in GB for the database instance | number |
n/a | yes |
db_connections_limit_threshold | The percentage threshold for number of database connections. Default: 80 | number |
80 |
no |
db_memory_threshold | The percentage threshold of FreeableMemory left for the Database. Default: 20 | number |
20 |
no |
identifier | Identifier of the database to monitor | string |
n/a | yes |
instance_class | Tier for the database instance to monitor | string |
n/a | yes |