Skip to main content

Module: efs-cloudwatch-sns-alarms

Create a set of sane EFS CloudWatch alerts for monitoring the health of an EFS resource.

areametriccomparison operatorthresholdrationale
StorageBurstCreditBalance<192000000000192 GB in Bytes (last hour where you can burst at 100 MB/sec)
StoragePercentIOLimit>95When the IO limit has been exceeded, the system performance drops.

Examples

resource "aws_efs_file_system" "default" {
creation_token = "app"
}

module "efs_alarms" {
source = "git::https://github.com/cloudposse/terraform-aws-efs-cloudwatch-sns-alarms.git?ref=master"
filesystem_id = "${aws_efs_file_system.default.id}"
}

Variables

Required Variables

filesystem_id (string) required

The EFS file system ID that you want to monitor

Optional Variables

add_sns_policy (string) optional

Attach a policy that allows the notifications through to the SNS topic endpoint


Default value: "false"

additional_endpoint_arns (list(string)) optional

Any alert endpoints, such as autoscaling, or app escaling endpoint arns that will respond to an alert


Default value: [ ]

burst_credit_balance_threshold (string) optional

The minimum number of burst credits that a file system should have.


Default value: "192000000000"

percent_io_limit_threshold (string) optional

IO Limit threshold


Default value: "95"

sns_topic_arn (string) optional

An SNS topic ARN that has already been created. Its policy must already allow access from CloudWatch Alarms, or set add_sns_policy to true


Default value: ""

Context Variables

The following variables are defined in the context.tf file of this module and part of the terraform-null-label pattern.

Outputs

sns_topic_arn

An SNS topic ARN that has already been created. Its policy must already allow access from CloudWatch Alarms, or set add_sns_policy to true

Dependencies

Providers

  • aws

Resources

The following resources are used by this module:

Data Sources

The following data sources are used by this module: