stefanfreitag / terraform-aws-fsx-status-monitor

Monitors the FSx lifecycle status of all volumes in an AWS account and sends out notifications when a volume is not in the AVAILABLE state.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-fsx-health

Terraform Version License

This module deploys a Lambda function that checks the health of FSx file systems and sends a notification if a file system is unhealthy.

Requirements

Name Version
terraform >= 1.0
archive >=2.4.0
aws >= 5.32.0
random >=3.5.1

Providers

Name Version
archive >=2.4.0
aws >= 5.32.0
random >=3.5.1

Modules

No modules.

Resources

Name Type
aws_cloudwatch_event_rule.fsx_health_lambda_schedule resource
aws_cloudwatch_event_target.fsx_health_lambda_target resource
aws_cloudwatch_log_group.fsx_health_lambda_log_groups resource
aws_cloudwatch_metric_alarm.this resource
aws_iam_policy.fsx_health_lambda_role_policy resource
aws_iam_role.fsx_health_lambda_role resource
aws_iam_role_policy_attachment.fsx_health_permissions resource
aws_lambda_function.fsx_health_lambda resource
aws_lambda_permission.allow_cw_call_lambda resource
aws_sns_topic.fsx_health_sns_topic resource
aws_sns_topic_subscription.fsx_health_sns_topic_email_target resource
random_id.id resource
archive_file.status_checker_code data source
aws_caller_identity.current data source
aws_region.current data source

Inputs

Name Description Type Default Required
cloudwatch_alarms_treat_missing_data Sets how the alarms handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Default is breaching. string "breaching" no
email List of e-mail addresses subscribing to the SNS topic. Default is empty list. list(string) [] no
enable_cloudwatch_alarms Setup CloudWatch alarms for the FSx filesystem state. For each state a separate alarm will be created. Default is false. bool false no
enable_sns_notifications Setup SNS notifications for the FSx filesystem state. Default is false. bool false no
filesystem_ids List of filesystem identifiers. Default is empty list. list(string) [] no
ignore_states Suppress warnings for the listed FSx states. Default: ['CREATING', 'UPDATING'] list(string)
[
"CREATING",
"UPDATING"
]
no
log_retion_period_in_days Number of days logs will be retained. Default is 365 days. number 365 no
memory_size Amount of memory in MByte that the Lambda Function can use at runtime. Default is 160. number 160 no
schedule_expression The schedule expression for the CloudWatch event rule. Default is 'rate(5 minutes)'. string "rate(5 minutes)" no
tags A map of tags to add to all resources. Default is empty map. map(string) {} no

Outputs

Name Description
cloudwatch_metric_alarm_arns A map consisting of FSx filesystem identifiers and their CloudWatch metric alarm ARNs.
role_arn The ARN of the IAM role.
sns_topic_arn The ARN of the SNS topic.

About

Monitors the FSx lifecycle status of all volumes in an AWS account and sends out notifications when a volume is not in the AVAILABLE state.

License:Apache License 2.0


Languages

Language:HCL 81.3%Language:Python 18.7%