Creates metric alarms for use with a Lambda Function
- Success rate
module "lambda_metric_alarms" {
source = "dod-iac/lambda-mteric-alarms/aws"
name = var.application
lambda_function_name = var.lambda_function_name
actions_alarm = [var.sns_topic_arn]
actions_ok = [var.sns_topic_arn]
actions_insufficient_data = [var.sns_topic_arn]
tags = {
Application = var.application
Environment = "test"
Automation = "Terraform"
}
}
Terraform 0.13. Pin module version to ~> 1.0.0 . Submit pull-requests to master branch.
Terraform 0.11 and 0.12 are not supported.
This project constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. However, because the project utilizes code licensed from contributors and other third parties, it therefore is licensed under the MIT License. See LICENSE file for more information.
Name | Version |
---|---|
terraform | >= 0.13 |
aws | ~> 3.0 |
Name | Version |
---|---|
aws | ~> 3.0 |
No modules.
Name | Type |
---|---|
aws_cloudwatch_metric_alarm.success_rate | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
actions_alarm | List of alarm actions to take | list(string) |
[] |
no |
actions_enabled | Enable the actions. Set to false to temporarily disable actions. | bool |
true |
no |
actions_insufficient_data | List of insufficient data actions to take | list(string) |
[] |
no |
actions_ok | List of ok actions to take | list(string) |
[] |
no |
enable_metric_alarm | Enable the metric alarm | bool |
true |
no |
evaluation_periods | The number of periods over which data is compared to the specified threshold. | number |
2 |
no |
lambda_function_name | The lambda function name for use with CloudWatch Metrics. | string |
n/a | yes |
name | The service name. | string |
n/a | yes |
period | The period in seconds over which the specified statistic is applied. | number |
120 |
no |
tags | Tags applied to the metric alarms. | map(string) |
{} |
no |
threshold | The threshold for the metric alarm | string |
"99.5" |
no |
Name | Description |
---|---|
success_rate_metric_alarm_arn | The ARN of the success rate metric alarm |
succss_rate_metric_alarm_id | The ID of the success rate metric alarm |