Fixed working with EC2 roles.