Understanding the purpose of the IAM role