Hi Ordisi,
I checked the current CX as Code export docs and the current provider source, and what you're seeing with genesyscloud_routing_queue does not look like the intended behavior. enable_dependency_resolution is supposed to export dependent resources, and when include_state_file = false the exporter should favor Terraform references, omission of unresolved GUID fields, or generated variables rather than leaving raw IDs hardcoded in the output. That matches the behavior you're seeing for schedule groups.
For queues specifically, the current RoutingQueueExporter() already declares reference handling for the fields you listed, including division_id, queue_flow_id, members.user_id, wrapup_codes, default_script_ids.*, on_hold_prompt_id, outbound_email_address.route_id, and media_settings_callback.answering_machine_flow_id. So if those are still being exported as literal GUIDs, I would treat that as a provider bug/regression or an unresolved queue-export edge case, not as a problem with your Terraform block.
I also checked the current release status. v1.78.0 is the latest provider release right now, and while the changelog includes exporter fixes, I don't see a routing-queue dependency-resolution fix called out there. There is also an open routing-queue export issue for nested member-group references in bullseye_rings being emitted as GUIDs instead of Terraform references, which suggests queue export still has some dependency-resolution gaps.
My recommendation would be:
Keep your current export block; it looks valid.
Temporarily set log_permission_errors = true so you can rule out missing GET permissions on dependent resource types while the exporter resolves queue references. The export resource calls GET APIs on the exported resource types.
Run the same export once with split_files_by_resource = false, just to rule out output-format issues, since v1.78.0 includes a split-by-resource exporter output fix.
Open a GitHub issue against the provider repo with a minimal repro and the exact queue attributes that remain hardcoded.
So overall, I'd classify this as: valid configuration, unexpected genesyscloud_routing_queue export behavior.
------------------------------
Marion Frigillana
Senior PS Consultant
------------------------------