Checking the IAM roles and policies