AWS Elastic Beanstalk无法承担角色

时间:2015-12-18 02:31:02

标签: ruby-on-rails amazon-web-services amazon-s3 amazon-ec2 elastic-beanstalk

我正在关注教程here,以便使用Elastic Beanstalk将Ruby on Rails应用部署到AWS。我收到了错误

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

所以我在IAM中创建了一个Role,并且到目前为止给出了AWSElasticBeanstalkFullAccess策略。我想知道我错过了什么。

此外,当我打开eb时,它会给我一个502 Bad Gateway Error。这与上述错误有关吗?

1 个答案:

答案 0 :(得分:1)

您需要为该角色授予正确的权限。服务角色赋予elasticbeanstalk代表您调用其他服务的权限。

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

相关问题