未授权执行:rds:DescribeDBEngineVersions

时间:2018-01-25 10:11:16

标签: apache amazon-web-services elastic-beanstalk python-3.6

我在REST api django中使用django-rest-framework实施了{ "detail": "Authentication credentials were not provided." } ,在localhost上正常运行并获得了成功。

将其推送到现有的AWS弹性beanstalk实例时,我收到了:

Pipeline failed with error "Service:AmazonRDS, is not authorized to perform: rds:DescribeDBEngineVersions"

对于解决方案,我遵循了这个问题:Authorization Credentials Stripped

但是当我在aws EB上推送mycode时,我收到了这个错误:

{{1}}

我尝试了很多解决方案,但每次出现此错误。

注意:我使用的是python3.6

1 个答案:

答案 0 :(得分:0)

我得到了问题的答案。

我设置RDS policy并在custom_wsgi.config目录上创建新的.ebextensions文件并编写命令:

files:
  "/etc/httpd/conf.d/wsgihacks.conf":
    mode: "000644"
    owner: root
    group: root
    content: |
      WSGIPassAuthorization On