We are running into a consistent rate-limiting issue when applying Terraform configurations that update a large number of users simultaneously. The environment is set up for a major rollout, and we need to modify user attributes for approximately 500 agents at once.
The process works fine for small batches, but once the number of concurrent requests hits a certain threshold, the Genesys Cloud API starts returning 429 Too Many Requests. We have implemented a basic retry mechanism in our custom data source, but it seems to be fighting against the rate limit rather than respecting it.
Here is the error payload we are seeing:
{
"code": "TooManyRequests",
"message": "You have exceeded the maximum number of requests allowed in this time frame.",
"status": 429
}
We are using the genesyscloud provider version 1.50.0. The Terraform plan shows the changes correctly, but the apply fails with the 429 error after about 20-30 seconds. We have tried adding a sleep action between resource blocks, but that is not scalable for this number of users.
Is there a recommended pattern for handling bulk updates in Terraform to avoid hitting these limits? We are looking for a way to implement an exponential backoff strategy within the provider or a workaround using the API directly.
The current approach is not sustainable for our deployment schedule. We need a reliable method to handle these bulk operations without manual intervention.