You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My issue isn't already found on the issue tracker.
I have replicated my issue using the latest version of the library and it is still present.
zscaler-terraformer version
zscaler-terraformer v1.2.2 Terraform version: Terraform v1.5.7 on (darwin_arm64)
Expected outcome
zia_dlp_web_rules created by the script have the wrong value type for "notification_template". It returns a list, but it should be a number:
Good file:
resource "zia_dlp_web_rules" "resource_zia_dlp_web_rules_843707" {
action = "BLOCK"
external_auditor_email = "ereyes@zscaler.com"
name = "Lab CC Number"
order = 1
protocols = ["FTP_RULE", "HTTPS_RULE", "HTTP_RULE"]
rank = 7
severity = "RULE_SEVERITY_INFO"
state = "ENABLED"
zscaler_incident_receiver = true
dlp_engines {
id = [2]
}
notification_template {
id = "3671"
}
}
Actual outcome
Terraform creates the file and then errors on it:
actual file:
resource "zia_dlp_web_rules" "resource_zia_dlp_web_rules_843707" {
action = "BLOCK"
external_auditor_email = "ereyes@zscaler.com"
name = "Lab CC Number"
order = 1
protocols = ["FTP_RULE", "HTTPS_RULE", "HTTP_RULE"]
rank = 7
severity = "RULE_SEVERITY_INFO"
state = "ENABLED"
zscaler_incident_receiver = true
dlp_engines {
id = [2]
}
notification_template {
id = [3671]
}
}
╷
│ Error: Incorrect attribute value type
│
│ on zia_dlp_web_rules.tf line 48, in resource "zia_dlp_web_rules" "resource_zia_dlp_web_rules_843707":
│ 48: id = [3671]
│
│ Inappropriate value for attribute "id": number required.
╵
Steps to reproduce
run terraform import on an environment with dlp web rules
Confirmation
zscaler-terraformer version
zscaler-terraformer v1.2.2 Terraform version: Terraform v1.5.7 on (darwin_arm64)
Expected outcome
zia_dlp_web_rules created by the script have the wrong value type for "notification_template". It returns a list, but it should be a number:
Good file:
Actual outcome
Terraform creates the file and then errors on it:
actual file:
Steps to reproduce
References
https://developer.hashicorp.com/terraform/language/expressions/types
The text was updated successfully, but these errors were encountered: