Can anyone explain why the genesyscloud_routing_outbound_campaign resource shows perpetual drift on the call_type_id attribute? The API returns the ID correctly, but the next terraform plan detects a change even when the HCL is static. This happens specifically with BYOC trunks in the APAC region.
The environment is:
- Provider:
genesyscloud/genesyscloud v1.32.0 - Terraform: v1.6.5
- Region:
us-east-1(tenant hosted), Campaign targetsap-southeast-2via BYOC.
Snippet:
resource "genesyscloud_routing_outbound_campaign" "drift_test" {
name = "APAC-Dial-Test"
status = "RUNNABLE"
call_type_id = var.call_type_id
trunk_id = var.byoc_trunk_id
dialing_frequency = "ONCE"
}
Error during apply:
Error: Provider produced inconsistent result after apply
When applying changes to genesyscloud_routing_outbound_campaign.drift_test, provider "module.genesys[0].provider["registry.terraform.io/genesyscloud/genesyscloud"]" produced an unexpected new value: was null, but now
known.
The call_type_id is not null in the state file. It seems the SDK or API returns an empty string or null for certain BYOC configurations, causing the diff. Is this a known limitation with cross-region predictive routing definitions? Need to suppress this diff or fix the provider logic.