Passing the ec2 crendentials properly to AppController