Running into a wall trying to export our full org config for DR testing. We’ve got a pretty heavy setup, around 5,000 flows and a ton of IVR configurations. I’m using the standard terraform state pull approach combined with a script to generate the tf files, but the process just stops after about 45 minutes.
Here’s the I’m running to kick off the export:
# Initialize the provider
terraform init
# Pull current state
terraform state pull > state.json
# Attempt to generate config
nice-cxone export --output ./backup/ --include flows,ivr,users
The nice-cxone CLI tool hangs on the flows section. No error message, just sits there. I checked the logs and it looks like it’s hitting a rate limit or timeout on the /api/v2/flows endpoint, but I don’t see a 429 response in the console. It just stops.
I tried adding a --concurrency 1 flag to slow it down, thinking it might be throttling the API calls too hard. That didn’t help. It still hangs at the same spot.
Is there a way to paginate the export manually? I can probably write a script to loop through the flows API with paging, but I’d rather use the official export tool if possible. Has anyone else seen this with large orgs? I’m on the latest version of the CXone Terraform provider and CLI.
Also, the state file is getting massive. 200MB for the state.json. That seems wrong. Should I be excluding certain resources from the state pull to keep it manageable?