Imported users are deleted if API fails (e.g. rate limiting)
giantsystems opened this issue · 4 comments
We're seeing some of our instances remove all the IAM local users on one 10 minute check and then recreate them on the next 10 minute check. Obviously with new UIDs so any granted permissions are lost.
We suspect we've now deployed this on so many instances, that all check on the 10 minute mark, that we're likely hitting the documented API limits and when a call for users fails, they all get removed, rather than just ignored.
We're going to adjust our cron jobs to try and offset some updates but are there any options for increasing API limits on an account?
#96 seems to fix this issue
are you using the latest version of the scripts?
Jan 2019 was the last time I updated from the repo. Looks like #96 pre-dates that so should be included. Is there a version number anywhere I can check to confirm?
I'm seeing the same issue as well. The script outputs the following and then deletes the users:
An error occurred (Throttling) when calling the GetGroup operation (reached max retries: 4): Rate exceeded
And I did cksum against my version of the import_users.sh and the file I just pulled off the repo and they are the same. So, the currently available version of this file has the bug in it.