Need some troubleshooting help with a persistent drift issue we are seeing with our messaging channels across the 15 byoc trunks in the apac region. specifically, the terraform provider is flagging drift on the supported_locales attribute even though the configuration in the state file matches exactly what is visible in the admin console. we are running terraform provider version 1.2.4 and genesys cloud platform release 2024-03.1.
when we run terraform plan, it suggests changing the locale codes from ["en-SG", "zh-CN"] to ["en-SG", "zh-CN"] - essentially no change - yet the plan output indicates a modification is required. this is happening consistently for our whatsapp and sms channels tied to the singapore and shanghai byoc connections. we have verified the carrier configurations directly with our telco partners, and they confirm the locale support is static and matches our config.
we tried refreshing the state and even destroying and recreating the resource in a sandbox environment, but the drift persists. interestingly, the voice channels on the same trunks do not exhibit this behavior, which makes us suspect this is specific to how the messaging api handles locale validation or caching. we are also seeing intermittent 409 conflict errors when attempting to update these channels via the rest api, suggesting some internal locking or asynchronous validation might be interfering with the terraform state reconciliation.
has anyone else encountered similar issues with the messaging channel resource in the terraform provider? we are trying to automate our trunk provisioning and this drift is blocking our ci/cd pipeline. any insights into whether this is a known bug in the provider or a quirk with the apac region’s messaging infrastructure would be appreciated. we are currently working around it by using lifecycle { ignore_changes = [supported_locales] }, but that feels like a band-aid and we would prefer a proper resolution to ensure configuration integrity.