Skip to content

alibabacloud-automation/terraform-alicloud-arms

Repository files navigation

Terraform module which creates arms rules and alert group on Alibaba Cloud.

terraform-alicloud-arms

English | 简体中文

Terraform module which creates arms rules and alert group on Alibaba Cloud.

Usage

resource "alicloud_arms_alert_contact" "default" {
  alert_contact_name = "example_value"
  email              = "example_value@aaa.com"
}

module "example" {
  source            = "terraform-alicloud-modules/arms/alicloud"
  contact_ids       = [alicloud_arms_alert_contact.default.id]
  match_expressions = [{ key = "aliyun_arms_involvedObject_kind", value = "app", operator = "eq" }]
}

Requirements

Name Version
terraform >= 0.13
alicloud >= 1.237.0

Providers

Name Version
alicloud >= 1.237.0

Modules

No modules.

Resources

Name Type
alicloud_arms_alert_contact_group.arms_alert_contact_group resource
alicloud_arms_dispatch_rule.arms_dispatch_rule resource

Inputs

Name Description Type Default Required
alert_contact_group_name The name of arms contract group. string null no
contact_ids The ids of arms contract. list(string) n/a yes
create Whether to create resources in module. bool false no
dispatch_rule_name The rule name of dispatch. string null no
dispatch_type The type of dispatch. string "CREATE_ALERT" no
group_interval The interval time of arms contract group. number null no
group_wait_time The waiting time of arms contract group. number null no
grouping_fields The files of arms contract group. list(string)
[
"alertname"
]
no
match_expressions The lable of match expresoins.
list(object({
key = string
value = string
operator = string
}))
n/a yes
notification_name The name of arms notification. string null no
notify_channels The name of arms notification. list(string)
[
"dingTalk",
"wechat"
]
no
notify_end_time The end time of arms notification. string null no
notify_start_time The start time of arms notification. string null no
repeat_interval The repeat interval time of arms contract group. number null no

Outputs

Name Description
this_arms_dispatch_rule The dispatch rule ID of arms.

Submit Issues

If you have any problems when using this module, please opening a provider issue and let us know.

Note: There does not recommend to open an issue on this repo.

Authors

Created and maintained by Alibaba Cloud Terraform Team(terraform@alibabacloud.com)

License

Apache 2 Licensed. See LICENSE for full details.

Reference