AWS Elastic Beanstalk unable to assume role

I was following the tutorial here for a Ruby on Rails app to deploy to AWS using Elastic Beanstalk. I am getting the error

Unable to assume role "arn:aws:iam::xxxxxxxxxx:role/aws-elasticbeanstalk-service-role". Verify that the role exists and is configured correctly. 

So I created a Role in IAM, and gave the AWSElasticBeanstalkFullAccess policy so far. I am wondering what I missed.

Also, when I do eb open, it gives me a 502 Bad Gateway Error. Is this related to the above error?

1 Answer

You need to give the right permissions to the role. Service role gives elasticbeanstalk the permission to call other services on your behalf.

You can read about the permissions required for your role here. Also do not mix service role and instance profile. They are two different roles with different purposes. Please read my answer for a more detailed explanation here.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like