Running into a wall trying to reference existing routing queues in our Terraform config using data sources. The documentation suggests using genesyscloud_routing_queue with a name match, but it’s failing when the queue name has a hyphen or an underscore.
Here’s the :
data "genesyscloud_routing_queue" "support_us" {
name = "US-Support_Tier1"
}
The plan crashes with:
Error: No matching resource found
with data.genesyscloud_routing_queue.support_us,
on main.tf line 12, in data "genesyscloud_routing_queue" "support_us":
12: data "genesyscloud_routing_queue" "support_us" {
I verified the name via the API (/api/v2/routing/queues) and it’s definitely US-Support_Tier1. Case sensitivity isn’t the issue. Tried escaping with backslashes, no change.
Is the name filter doing a regex match that chokes on those characters? Or is there a better way to grab the ID without hardcoding it? We’ve got dozens of queues and manual IDs are a maintenance nightmare.