Great question — answering as the UphillTech team:
Amazon probably sets a rate limit on requests per second, minute, hour, or day. You'll need to review their documentation to understand what that limit is, and then adjust your script to ensure it does not exceed that limit. Have a look at Efficiently consuming a rate-limited service , which has answers with some good advice. Depending on your setup, How can my distributed web service rate-limit calls to a downstream component? might be worth a read as well. Just searching rate limit in the Software Engineering community brings up lots of related posts.
Full answer by Greg Burghardt: https://stackoverflow.stackexchange.com/a/79940537 (CC BY-SA 4.0).
Need it done for your business? UphillTech.