【问题标题】:not authorized to perform: rds:DescribeDBEngineVersions未授权执行:rds:DescribeDBEngineVersions
【发布时间】:2018-07-04 13:15:06
【问题描述】:

我在djangodjango-rest-framework 中实现了REST api,在本地主机上运行良好并取得了成功。

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

{
    "detail": "Authentication credentials were not provided."
}

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

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

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

我尝试了很多解决方案,但每次都收到此错误。

注意:我使用的是python3.6

【问题讨论】:

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


    【解决方案1】:

    我的问题得到了答案。

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-06
      • 2016-03-17
      相关资源
      最近更新 更多