Comments (7)
@lra thank you for the workaround :)
The reason I've posted this bug report, is that:
- the change goes against CF Web UI that supports multiple integration types for the same notification policy.
- the change goes against CF API, which support multiple integration types - https://developers.cloudflare.com/api/operations/notification-policies-create-a-notification-policy
- there is no update of provider documentation regarding this change - https://registry.terraform.io/providers/cloudflare/cloudflare/4.21.0/docs/resources/notification_policy#example-usage
from terraform-provider-cloudflare.
Community Note
Voting for Prioritization
- Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
- If you are interested in working on this issue, please leave a comment.
- If this would be your first contribution, please review the contribution guide.
from terraform-provider-cloudflare.
Terraform debug log detected ✅
from terraform-provider-cloudflare.
The workaround is to have only 1 type of integration per notification policy.
Instead of:
resource "cloudflare_notification_policy" "pusher" {
account_id = ""
name = "rate-limit"
enabled = true
alert_type = "clickhouse_alert_fw_ent_anomaly"
filters {
services = ["ratelimit"]
actions = ["log"]
}
email_integration {
id = "[email protected]"
}
webhooks_integration {
id = "someid"
name = "Slack cloudflare alerts"
}
}
Do:
resource "cloudflare_notification_policy" "pusher_email" {
account_id = ""
name = "rate-limit"
enabled = true
alert_type = "clickhouse_alert_fw_ent_anomaly"
filters {
services = ["ratelimit"]
actions = ["log"]
}
email_integration {
id = "[email protected]"
}
}
resource "cloudflare_notification_policy" "pusher_webhooks" {
account_id = ""
name = "rate-limit"
enabled = true
alert_type = "clickhouse_alert_fw_ent_anomaly"
filters {
services = ["ratelimit"]
actions = ["log"]
}
webhooks_integration {
id = "someid"
name = "Slack cloudflare alerts"
}
}
from terraform-provider-cloudflare.
thanks for the issue here @eLco.
@Cyb3r-Jak3 you added the ExactlyOneOf
in #2976. was the change intending to prevent multiple blocks of config? it looks like the endpoints support it.
there is no update of provider documentation regarding this change - https://registry.terraform.io/providers/cloudflare/cloudflare/4.21.0/docs/resources/notification_policy#example-usage
we don't offer kitchen sink style examples so it's very likely not to appear here :) you should use the API and developer documentation to determine more complex examples.
from terraform-provider-cloudflare.
@Cyb3r-Jak3 you added the ExactlyOneOf in #2976. was the change intending to prevent multiple blocks of config? it looks like the endpoints support it.
Thought I read somewhere that only one could be referenced. Can't seem to find the docs for it now though.
from terraform-provider-cloudflare.
all good - if we can't find the reference, let's get that reverted for the next release.
from terraform-provider-cloudflare.
Related Issues (20)
- Terraform created ACMs are deleted on activation patch curl request and created new ones HOT 3
- Updating existing/imported Hyperdrive fails as no ID passed through on Update HOT 4
- cloudflare_zone data source doesn't include verification_key for partial zones. HOT 4
- The cloudflare_static_route resource validation checker is incorrectly flagging 169.254.245.1 and 169.254.244.1 addresses as Invalid HOT 2
- No way to enable the default `<worker_name>.<account_name>.workers.dev` route in `cloudflare_worker_script` HOT 6
- Error for cloudflare_list_item when same hostname but different path HOT 2
- Cloudflare Notification Policy - magic_tunnel_health_check_event not working. HOT 2
- customer_endpoint (String) IP address assigned to the customer side of the IPsec tunnel. < This is not a required field. HOT 3
- data source pull incorrect account id HOT 4
- Terraform `plan` should detect invalid CNAME record values, like `https://some.domain` HOT 8
- Ruleset error with v4.30 HOT 4
- v4.31.0 released but not available in registry.terraform.io HOT 6
- Missing return after AddError HOT 4
- Incorrect `hosts` attribute type for `cloudflare_certificate_pack` HOT 4
- Authentication error (10000) HOT 5
- Unable to associate Virtual Network with origin - schema_cloudflare_load_balancer_pool.go is missing virtual network association HOT 4
- CRON Trigger creation failed with `workers.api.error.subdomain_required` HOT 1
- Issue changing location from ENAM to WEUR in a r2 bucket HOT 3
- Error reading setting "nel" for zone in v4.33.0 HOT 9
- `cloudflare_access_application` should be replaced when `auth_type` is changed. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-cloudflare.