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
time="2025-01-31T10:09:53-05:00" level=error msg="failed to exec to git" time="2025-01-31T10:09:53-05:00" level=error msg="failed to exec to git" zscaler-terraformer -dev+ Terraform version: Terraform v1.10.5 on (windows_amd64) Your version of Zscaler-Terraformer is out of date! The latest version is v2.0.0. You can update by running the command "choco upgrade zscaler-terraformer" or download the new version from https://github.com/zscaler/zscaler-terraformer/releases
Expected outcome
Expect to be able to apply imported EUN config without modification. There appears to be an issue with the terraform module not supporting 0 values which the api clearly supports. However, the terraformer tool is setting aup_custom_frequency = 0 when aupCustomFrequency is not returned in the REST. Feel free to close if you want to handle it entirely in the ZIA terraform module.
Actual outcome
Getting the following error when running terraform plan:
│ Error: expected aup_custom_frequency to be in the range (1 - 180), got 0
│
│ with zia_end_user_notification.resource_zia_end_user_notification_enduser_notification,
│ on zia_end_user_notification.tf line 3, in resource "zia_end_user_notification" "resource_zia_end_user_notification_enduser_notification":
│ 3: aup_custom_frequency = 0
│
╵
╷
│ Error: expected aup_day_offset to be in the range (1 - 31), got 0
│
│ with zia_end_user_notification.resource_zia_end_user_notification_enduser_notification,
│ on zia_end_user_notification.tf line 4, in resource "zia_end_user_notification" "resource_zia_end_user_notification_enduser_notification":
│ 4: aup_day_offset = 0
│
Confirmation
zscaler-terraformer version
time="2025-01-31T10:09:53-05:00" level=error msg="failed to exec to
git
" time="2025-01-31T10:09:53-05:00" level=error msg="failed to exec togit
" zscaler-terraformer -dev+ Terraform version: Terraform v1.10.5 on (windows_amd64) Your version of Zscaler-Terraformer is out of date! The latest version is v2.0.0. You can update by running the command "choco upgrade zscaler-terraformer" or download the new version from https://github.com/zscaler/zscaler-terraformer/releasesExpected outcome
Expect to be able to apply imported EUN config without modification. There appears to be an issue with the terraform module not supporting 0 values which the api clearly supports. However, the terraformer tool is setting aup_custom_frequency = 0 when aupCustomFrequency is not returned in the REST. Feel free to close if you want to handle it entirely in the ZIA terraform module.
Actual outcome
Getting the following error when running terraform plan:
This is the imported aup settings:
This is the REST:
"aupFrequency": "NEVER", "aupDayOffset": 0, "aupMessage": "",
Steps to reproduce
References
zscaler/terraform-provider-zia#387
The text was updated successfully, but these errors were encountered: