Terraform plan hangs on export with 10k+ flows

Trying to export our entire org config for DR using genesys_cloud_resource_export. The plan just hangs after pulling 2,000 flows. No error, just stalls. Is there a way to chunk the export or increase the timeout in the provider config?

1 Like

{"error":"invalid_grant","error_description":"Access token expired"} keeps popping up when the export drags past sixty minutes. You’ll hit that wall because the provider holds onto the initial client credentials token way too long.

curl -X POST "https://api.mypurecloud.com/api/v2/oauth/token" \
 -H "Authorization: Basic $(echo -n 'your_client_id:your_client_secret' | base64)" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'grant_type=refresh_token&refresh_token=YOUR_REFRESH_TOKEN&scope=flow:read'

Just swap it out and feed the new bearer token into your TF config.