How should I properly to reference an existing Genesys Cloud routing queue by name using the genesyscloud_routing_queue data source without triggering a plan drift?
I am trying to inject queue IDs into a Data Action configuration via Terraform. When I use data.genesyscloud_routing_queue.existing.name, the apply fails with a 404 or returns null if the name contains special characters that differ from the internal ID lookup. I need a stable reference method that handles name normalization correctly.
Here is the snippet causing the issue:
data "genesyscloud_routing_queue" "target" {
name = "Support-EMEA"
}
resource "genesyscloud_routing_queue" "mapped" {
depends_on = [data.genesyscloud_routing_queue.target]
# ... mapping logic here
}
Is there a specific attribute or filter I should use to ensure the lookup resolves deterministically?