Hey everyone,
I’m trying to set up a disaster recovery plan for our Genesys Cloud org. We want to keep a snapshot of our configuration in Git. I’ve been looking at the CX as Code tools. Specifically, I’m trying to use the Terraform provider to export our current state.
The goal is to run a script that pulls everything down. Then we can push it to a repo. If something breaks, we can restore from that backup. I found the genesyscloud provider docs. They mention using terraform import or terraform plan to sync state. But I’m not sure how to export the entire org at once.
I tried running genesyscloud export --org in the CLI. It started downloading files. But it hung on the routing profiles. Then it failed with a timeout error. The log showed a 504 Gateway Timeout. I think the payload is just too big. We have a lot of queues and skills.
Here is what I tried so far:
genesyscloud export --org --output ./backup
It created a folder with some JSON files. But it’s incomplete. It missed the user settings. I also tried using the Terraform provider directly. I wrote a simple main.tf file to import a few resources.
provider "genesyscloud" {
base_url = "https://api.mypurecloud.com"
}
resource "genesyscloud_routing_queue" "test" {
name = "Test Queue"
}
This works for single resources. But I don’t want to manually define every resource. That’s not scalable. I need a way to dump the whole config. Is there a script or a specific API call I can use? Maybe something with /api/v2/architect/flows? Or is there a better way to do this with Terraform?
Any help would be great. I’m stuck on this.