Home

Awesome

<!-- BEGIN_TF_DOCS -->

AWS ELB Cloudwatch

This Terraform module manages CloudWatch Alarms for an ALB in the region. It does NOT create or manage Load Balancers, only Metric Alarms.

Requires:

Alarms Created

Alarms Always Created:

Estimated Operating Cost: $ 0.50 / month

Example

module "aws-alb-alarms" {
  source            = "lorenzoaiello/alb-alarms/aws"
  version           = "x.y.z"
}

Pro Support

<a href="https://www.opszero.com"><img src="https://assets.opszero.com/images/opszero_11_29_2016.png" width="300px"/></a>

opsZero provides support for our modules including:

Providers

NameVersion
<a name="provider_aws"></a> awsn/a

Inputs

NameDescriptionTypeDefaultRequired
<a name="input_actions_alarm"></a> actions_alarmA list of actions to take when alarms are triggered. Will likely be an SNS topic for event distribution.list(string)[]no
<a name="input_actions_ok"></a> actions_okA list of actions to take when alarms are cleared. Will likely be an SNS topic for event distribution.list(string)[]no
<a name="input_evaluation_period"></a> evaluation_periodThe evaluation period over which to use when triggering alarms.string"5"no
<a name="input_healthy_hosts_threshold"></a> healthy_hosts_thresholdThe number of healthy hosts.string"0"no
<a name="input_load_balancer_arn"></a> load_balancer_arnELB ARNstringn/ayes
<a name="input_prefix"></a> prefixAlarm Name Prefixstring""no
<a name="input_response_time_threshold"></a> response_time_thresholdThe average number of milliseconds that requests should complete within.string"50"no
<a name="input_statistic_period"></a> statistic_periodThe number of seconds that make each statistic period.string"60"no
<a name="input_target_group_arn"></a> target_group_arnTarget Group ARNstringn/ayes
<a name="input_unhealthy_hosts_threshold"></a> unhealthy_hosts_thresholdThe number of unhealthy hosts.string"0"no

Resources

NameType
aws_cloudwatch_metric_alarm.healthy_hostsresource
aws_cloudwatch_metric_alarm.httpcode_lb_5xx_countresource
aws_cloudwatch_metric_alarm.httpcode_target_5xx_countresource
aws_cloudwatch_metric_alarm.target_response_time_averageresource
aws_cloudwatch_metric_alarm.unhealthy_hostsresource

Outputs

NameDescription
<a name="output_alarm_httpcode_lb_5xx_count"></a> alarm_httpcode_lb_5xx_countThe CloudWatch Metric Alarm resource block for 5xx errors on the load balancer
<a name="output_alarm_httpcode_target_5xx_counts"></a> alarm_httpcode_target_5xx_countsThe CloudWatch Metric Alarm resource block for 5xx errors on the target group
<a name="output_alarm_target_response_time_average"></a> alarm_target_response_time_averageThe CloudWatch Metric Alarm resource block for unacceptably high response time averages
<!-- END_TF_DOCS -->