4 ms·
Yeah, what you are looking for is something like a "learning mode" for an IAM account where the key actually has wide-open permissions and the system records wh
by joshstrange 4y ago
Yeah, what you are looking for is something like a "learning mode" for an IAM account where the key actually has wide-open permissions and the system records which permissions are used and generates a policy locked down to what you did while it was in "learning mode" then you can edit that policy and then turn the account into "locked mode" where permissions are limited to the created policy.
I've been in that position and more often than not I end up doing the "wrong" thing and give a key wider permissions than needed because trying to lock it down is so frustrating (especially if your CI process is long/expensive). Having to wait 5+ minutes for a CI to reach to the end and realized you missed 1 permissions, rinse and repeat 10+ times for "just one more permission" is frustrating/time consuming.
EDIT: Just saw this further down in the thread https://github.com/iann0036/iamlive https://github.com/iann0036/iamlive (which you already replied to) which looks like it does pretty much what I'm looking for.