I'm trying to use Humata's API to analyze a bunch of our old AWS Terraform configs for security gaps, maybe a few hundred files at a time. The default rate limit feels pretty restrictive for this kind of batch work.
Has anyone run into this and found a good pattern? I'm thinking I might need to write a wrapper with some aggressive retry logic and delays, which seems messy. Here's a rough idea of what I'm dealing with:
```python
# Pseudo-code for my current script
for tf_file in terraform_files:
while True:
response = humata_api.analyze(tf_file)
if response.status == 429:
time.sleep(60) # This adds up fast!
continue
break
```
Is there a better way, or do I just need to request a limit increase? Worried about costs if I go that route 😅