alb-target-group-cloudwatch-sns-alarms

cloudposse/alb-target-group-cloudwatch-sns-alarms/aws

Terraform Module HCL AWS

Terraform module to create CloudWatch Alarms on ALB Target level metrics.

Install
module "alb-target-group-cloudwatch-sns-alarms" {
source = "cloudposse/alb-target-group-cloudwatch-sns-alarms/aws"
version = "0.17.0"
}
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-alb-target-group-cloudwatch-sns-alarms ![Latest Release](https://github.com/cloudposse/terraform-aws-alb-target-group-cloudwatch-sns-alarms/releases/latest) ![Slack Community](https://slack.cloudposse.com) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) Terraform module for creating alarms for tracking important changes and occurrences from ALBs. --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_email] [ ][share_googleplus] [ ][share_facebook] [ ][share_reddit] [ ][share_linkedin] [ ][share_twitter] ![Terraform Open Source Modules][terraform_modules] It's 100% Open Source and licensed under the APACHE2. We literally have [hundreds of terraform modules][terraform_modules] that

Inputs (34)
NameTypeDescriptionDefault
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` required
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will required
enabledboolSet to false to prevent the module from creating any resources required
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indi required
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi required
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length. required
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' required
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["na required
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bu required
target_group_arn_suffixstringThe ARN suffix of ALB Target Group required
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by required
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'st required
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tag required
alb_arn_suffixstringThe ARN suffix of ALB required
elb_5xx_count_thresholdnumberThe maximum count of ELB 5XX requests over a period. A negative value will disab25
insufficient_data_actionslist(string)A list of ARNs (i.e. SNS Topic ARN) to execute when this alarm transitions into [ "" ]
httpcode_alarm_descriptionstringThe string to format and use as the httpcode alarm description"HTTPCode %v count for %v over %v last %
ok_actionslist(string)A list of ARNs (i.e. SNS Topic ARN) to execute when this alarm transitions into [ "" ]
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
target_4xx_count_thresholdnumberThe maximum count of 4XX requests over a period. A negative value will disable t25
treat_missing_datastringSets how alarms handle missing data points. Values supported: missing, ignore, b"missing"
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
evaluation_periodsnumberNumber of periods to evaluate for the alarm1
periodnumberDuration in seconds to evaluate for the alarm300
target_response_time_thresholdnumberThe maximum average target response time (in seconds) over a period. A negative 0.5
target_response_time_alarm_descriptionstringThe string to format and use as the target response time alarm description"Target Response Time average for %v ove
target_5xx_count_thresholdnumberThe maximum count of 5XX requests over a period. A negative value will disable t25
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
notify_arnslist(string)A list of ARNs (i.e. SNS Topic ARN) to execute when this alarm transitions into [ "" ]
alarm_actionslist(string)A list of ARNs (i.e. SNS Topic ARN) to execute when this alarm transitions into [ "" ]
target_3xx_count_thresholdnumberThe maximum count of 3XX requests over a period. A negative value will disable t25
Outputs (10)
httpcode_target_4xx_count_cloudwatch_metric_alarm_arn — Target Group 4xx count CloudWatch metric alarm ARN
httpcode_elb_5xx_count_cloudwatch_metric_alarm_arn — ELB 5xx count CloudWatch metric alarm ARN
target_response_time_average_cloudwatch_metric_alarm_id — Target Group response time average CloudWatch metric alarm ID
httpcode_target_3xx_count_cloudwatch_metric_alarm_id — Target Group 3xx count CloudWatch metric alarm ID
httpcode_target_3xx_count_cloudwatch_metric_alarm_arn — Target Group 3xx count CloudWatch metric alarm ARN
httpcode_target_4xx_count_cloudwatch_metric_alarm_id — Target Group 4xx count CloudWatch metric alarm ID
httpcode_target_5xx_count_cloudwatch_metric_alarm_id — Target Group 5xx count CloudWatch metric alarm ID
httpcode_target_5xx_count_cloudwatch_metric_alarm_arn — Target Group 5xx count CloudWatch metric alarm ARN
httpcode_elb_5xx_count_cloudwatch_metric_alarm_id — ELB 5xx count CloudWatch metric alarm ID
target_response_time_average_cloudwatch_metric_alarm_arn — Target Group response time average CloudWatch metric alarm ARN
Resources (1)
aws_cloudwatch_metric_alarm
Details
FrameworkTerraform Module
LanguageHCL
Version0.17.0
Cloud AWS
★ Stars33
Forks23
Total downloads754.7k
Inputs34
Outputs10
Resources1
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated