Terraform data source lookup failing on Genesys Cloud routing queue

Trying to grab an existing routing queue ID using the genesyscloud_routing_queue data source, but it’s throwing an error saying no matching resources found. I’m passing the exact name from the UI, but the plan fails every time.

resource "genesyscloud_routing_queue" "existing" {
 name = "Support - Tier 1"
}

Is the lookup case-sensitive or am I missing a filter parameter?

You’re using resource instead of data. That tries to create a new queue, not look one up. Switch to data "genesyscloud_routing_queue" and use the name argument for the lookup.

data "genesyscloud_routing_queue" "existing" {
 name = "Support - Tier 1"
}

Check your TF version too. Older providers had bugs with this lookup.