Added support for EC2 roles