【发布时间】:2021-10-26 12:51:15
【问题描述】:
我需要通过 Terraform Google 云提供商创建基于日志的警报策略: https://cloud.google.com/logging/docs/alerting/monitoring-logs#lba
我查看了 Terraform 官方文档,看到了“google_monitoring_alert_policy”资源:https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy
我没有在此文档中找到如何创建基于日志的警报策略。
我可以创建“指标”类型但不能使用“日志”类型的警报策略
我使用最新版本的 Terraform 谷歌云提供商:https://registry.terraform.io/providers/hashicorp/google/latest
请问如何使用 Terraform Google 提供商创建基于日志的警报策略?
提前感谢您的帮助。
【问题讨论】:
-
Terraform 提供程序中存在一个未解决的问题,以支持 conditionMatchedLog 块 github.com/hashicorp/terraform-provider-google/issues/9893
-
感谢迭戈提供的信息 :)
标签: google-cloud-platform terraform terraform-provider-gcp google-cloud-monitoring