Notification policy with multiple email ids not possible neither when importing nor when applying. #1915
Closed
2 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.2.9
on windows_386
Affected resource(s)
cloudflare_notification_policy
Terraform configuration files
Link to debug output
https://gist.github.com/Done203/54c96e80afc31dd2b5b431682e0093d4
Panic output
│ Error: Incorrect attribute value type
│
│ on main_notifications.tf line 63, in resource "cloudflare_notification_policy" "example_name":
│ 63: id = ["colleague1@company.com",
│ 64: "colleague2@company.com",
│ 65: "colleague3@company.com"]
│
│ Inappropriate value for attribute "id": string required.
Expected output
Plan: 1 to add, 0 to change, 0 to destroy.
Actual output
Inappropriate value for attribute "id": string required.
Steps to reproduce
Additional factoids
This is my first time working with Terraform so apologies if its an error on my part.
Creating a notification with multiple emails is impossible with the cloudflare ressource due to the id field of the email_integration block requiring just a string, though its possible on the cloudflare website.
Out of curiosity i imported an existing notification policy with multiple emails and i've found out that terraform takes only the last email of the policy and saves it in the state file.
I'd like the id field of the email_integration block to be a set of strings instead of a string to make multiple emails for a single notification policy possible. Maybe this might also fix the incorrect (?) import.
References
none
The text was updated successfully, but these errors were encountered: