…
So is it possible to sleep/pause between iterations of ‘with_items’ list (as I understand AWS complains about requests coming too fast)?
Do you have any other solutions for these types of scripts (cause I also get the same errors for attaching instance to multiple ELBs)?
I'd run into a similar issue using the rax_dns and rax_dns_record modules,
so I created a simple callback plugin to sleep after each task only when
using the role that ran those modules: https://gist.github.com/cchurch/c2694a1de478ec417ee8
We found that adding serial=1 slowed things down enough to avoid AWS's
Route 53 rate limits, but that may not help here, if this is all running
one at a time on a single host anyway...
-Josh (jbs@care.com)
This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system.