Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 5.7 KB

File metadata and controls

60 lines (48 loc) · 5.7 KB

terraform-module-template

This Terraform module will create a Route53 Health Check and associated CloudWatch metric alarm.

Providers

Name Version
aws n/a

Resources

Name Type
aws_cloudwatch_metric_alarm.this resource
aws_route53_health_check.this resource

Inputs

Name Description Type Default Required
alarm_name The name to use for the cloudwatch alarm. string n/a yes
fqdn The fully qualified domain name of the resource this health check should point to. string n/a yes
health_check_name The name of the resource string n/a yes
alarm_actions What are the alarm destinations? list(string) [] no
alarm_actions_enabled Should we enable alarm actions? bool false no
alarm_comparison_operator The name to use for the cloudwatch alarm. string "LessThanThreshold" no
alarm_datapoints_to_alarm The number of datapoints to use for the cloudwatch alarm. number 1 no
alarm_description The name to use for the cloudwatch alarm. string "Alarm for Route53 health check" no
alarm_evaluation_periods The amount of evaluation periods to use for the cloudwatch alarm. number 1 no
alarm_insufficient_data_actions What are the alarm insufficent data destinations? list(string) [] no
alarm_ok_actions What are the alarm ok destinations? list(string) [] no
alarm_period The period to use for the cloudwatch alarm. number 60 no
alarm_threshold The threshold to use for the cloudwatch alarm. number 1 no
alarm_treat_missing_data How should we treat missing data for the cloudwatch alarm? string "missing" no
health_check_disabled Should this health check be disabled? bool false no
health_check_enable_sni Should this health check use SNI? For HTTP, use false; For HTTPS, use true bool true no
health_check_failure_threshold The failure threshold this health check should use. string "5" no
health_check_invert_healthcheck Should this invert health for this health check? bool false no
health_check_measure_latency Should this enable measure latency for this health check? bool false no
health_check_port The port of the resource this health check should point to. number 80 no
health_check_regions The regions that this health check is checked from. list(string) [] no
health_check_request_interval The request interval this health check should use. string "30" no
health_check_resource_path The path of the resource this health check should point to. string "/" no
health_check_type The type of check this health check should use. string "HTTPS" no
tags Map of tags to apply to resources created by this module map(string) {} no

Outputs

Name Description
alarm_arn The arn of the alarm that this module created.
alarm_id The id of the alarm that this module created.
health_check_id The id of the health check that this module created.