Running terraform plan after importing a full org export from Genesys Cloud. It’s blowing up on the routing queues.
Error: Error creating RoutingQueue: 409 Conflict
Details: The routing queue 'Support-Tier1' already exists.
I’ve used the genesyscloud-cx-as-code CLI to export the config with --include-ids to keep the UUIDs intact. The generated HCL looks correct, and I’ve verified the id attributes match the live environment.
I’ve tried:
- Running
terraform importon the specific resource. It says it’s already tracked. - Removing the state file entry and re-importing. Same conflict error on plan.
- Checking for duplicate names in the export JSON. There aren’t any.
The issue seems to be that Terraform sees the resource as “new” because the local state doesn’t match the remote reality, even though the IDs are present in the HCL.
Is there a specific flag for the exporter to handle existing IDs better, or do I need to manually script the terraform import for every queue? The org has 500+ queues, so manual isn’t an option.