1

我按照教程here的说明使用Elastic Beanstalk将Ruby on Rails应用程序部署到AWS。我越来越AWS Elastic Beanstalk无法承担角色

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

因此,我创建的IAM角色的错误,并给出了AWSElasticBeanstalkFullAccess政策为止。我想知道我错过了什么。

另外,当我打开eb时,它给了我一个502错误的网关错误。这是与上述错误有关吗?

回答

1

您需要给该角色提供正确的权限。服务角色为elasticbean提供了代表您调用其他服务的权限。

您可以阅读有关角色here所需的权限。 也不要混合服务角色和实例配置文件。他们是两个不同目的的不同角色。 请阅读我的回答,以获得更详细的解释here