This Terraform module manages Cloudwatch Alarms for an Elastic File System. It does NOT create or manage EFS, only Metric Alarms.
Requires:
- AWS Provider
- Terraform 0.12
Alarms Always Created:
- Disk burst balance less than 100 GB
- IO Percentage above 90%
- Anomalous client connection count
- Anomalous IO pattern (bytes)
Estimated Operating Cost: $ 0.80 / month
- $ 0.10 / month for Metric Alarms (2x)
- $ 0.30 / month for Anomaly Alarm (2x)
resource "aws_efs_file_system" "default" {
creation_token = "my-filesystem"
}
module "aws-efs-alarms" {
source = "lorenzoaiello/efs-alarms/aws"
version = "x.y.z"
efs_id = aws_efs_file_system.default.id
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
actions_alarm | A list of actions to take when alarms are triggered. Will likely be an SNS topic for event distribution. | list |
[] |
no |
actions_ok | A list of actions to take when alarms are cleared. Will likely be an SNS topic for event distribution. | list |
[] |
no |
anomaly_period | The number of seconds that make each evaluation period for anomaly detection. | string |
"600" |
no |
efs_id | EFS ID | string |
n/a | yes |
evaluation_period | The evaluation period over which to use when triggering alarms. | string |
"5" |
no |
prefix | Alarm Name Prefix | string |
"" |
no |
statistic_period | The number of seconds that make each statistic period. | string |
"60" |
no |
Name | Description |
---|---|
alarm_anomalous_client_connections | The CloudWatch Metric Alarm resource block for anomalous Client Connection Count |
alarm_anomalous_io_bytes | The CloudWatch Metric Alarm resource block for anomalous IO Bytes |
alarm_burst_balance_too_low | The CloudWatch Metric Alarm resource block for low Disk Burst Balance |
alarm_io_percentage_too_high | The CloudWatch Metric Alarm resource block for high IO Percentage |