Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare Load Balancing Health Alert #1852

Closed
MilanDasek opened this issue Aug 23, 2022 · 4 comments
Closed

Cloudflare Load Balancing Health Alert #1852

MilanDasek opened this issue Aug 23, 2022 · 4 comments
Labels
kind/support Categorizes issue or PR as related to user support. service/load_balancing Categorizes issue or PR as related to the Load Balancing service. service/notifications Categorizes issue or PR as related to the notification service.

Comments

@MilanDasek
Copy link

Current Terraform and Cloudflare provider version

Terraform v1.2.7

Description

Hello,

How can I enable Load Balancing Health Alert in cloudflare_notification_policy, since CF is discontinuing old type of monitoring
https://developers.cloudflare.com/load-balancing/reference/migration-guides/health-monitor-notifications/

It seems such alert_type is missing there, or I don't know how to filter to current pool.

Can you please provide some example if I am missing it?

Use cases

https://developers.cloudflare.com/load-balancing/reference/migration-guides/health-monitor-notifications/

Potential Terraform configuration

I don't know.

References

No response

@MilanDasek MilanDasek added kind/enhancement Categorizes issue or PR as related to improving an existing feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Aug 23, 2022
@jacobbednarz
Copy link
Member

the documentation for alert types was updated in #1830 to cover the newer types. check that out and you should be able to use the developer docs to translate to the required terraform configuration.

@jacobbednarz jacobbednarz added kind/support Categorizes issue or PR as related to user support. service/load_balancing Categorizes issue or PR as related to the Load Balancing service. service/notifications Categorizes issue or PR as related to the notification service. and removed kind/enhancement Categorizes issue or PR as related to improving an existing feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Aug 23, 2022
@jacobbednarz jacobbednarz closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2022
@MilanDasek
Copy link
Author

Sorry,

so why I get

│ 
│   on .terraform/modules/cloudflare-loadbalancer-he-dev/cd-lb-notification.tf line 16, in resource "cloudflare_notification_policy" "healthcheck_notification":
│   16:     event_source = [
│ 
│ An argument named "event_source" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/cloudflare-loadbalancer-he-dev/cd-lb-notification.tf line 20, in resource "cloudflare_notification_policy" "healthcheck_notification":
│   20:     new_health = [
│ 
│ An argument named "new_health" is not expected here.

with

  filters {

    event_source = [
      "pool", "origin"
    ]

    new_health = [
      "Unhealthy", "Healthy"
    ]

    pool_id = [cloudflare_load_balancer_pool.pool[count.index].id]
  }

with

- Installing cloudflare/cloudflare v3.21.0...
- Installed cloudflare/cloudflare v3.21.0 (signed by a HashiCorp partner, key ID DE413CEC881C3283)

Thank you

@MilanDasek
Copy link
Author

@jacobbednarz - please ^^

@jacobbednarz
Copy link
Member

the change isn't available in the public version yet; see https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/CHANGELOG.md. if you need the change immediately, you can build a custom version locally to use https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/contributing/using-non-released-versions.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as related to user support. service/load_balancing Categorizes issue or PR as related to the Load Balancing service. service/notifications Categorizes issue or PR as related to the notification service.
Projects
None yet
Development

No branches or pull requests

2 participants