【问题标题】:AWS Elastic Beanstalk unable to assume roleAWS Elastic Beanstalk 无法担任角色
【发布时间】:2016-03-24 16:39:05
【问题描述】:

我正在按照教程 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 中创建了一个角色,并提供了 AWSElasticBeanstalkFullAccess 策略。我想知道我错过了什么。

另外,当我打开 eb 时,它给了我一个 502 Bad Gateway Error。这和上面的错误有关系吗?

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2023-03-13
      • 2018-09-19
      • 2018-09-10
      • 1970-01-01
      • 2022-07-28
      • 2021-03-03
      • 1970-01-01
      • 1970-01-01
      • 2022-08-15
      相关资源
      最近更新 更多