Fixed a bug that I can't get out of my head

I even wrote a blog post after fixing it.
https://www.bhavaniravi.com/devops/aws/iam-users-roles-and-policies