AWS Beanstalk - getting "Access denied while accessing Auto Scaling and ..." error
<p>When I try to launch an Elastic Beanstalk environment from the command line, I get this error during the process:</p>

<blockquote>
  <p>Environment health has transitioned from Pending to Warning. Access
  denied while accessing Auto Scaling and Elastic Load Balancing using
  role "arn:aws:iam::XXXXXXXXXX:role/aws-elasticbeanstalk-service-role".
  Verify the role policy.</p>
</blockquote>

<p>When I launch it from the console, I do not get this warning. I have tried to replicate the same AWS console configuration from the CLI , but I still get this error. </p>

<p>Any clue what's going on? </p>