我在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
答案 0 :(得分:0)
我得到了问题的答案。
我设置RDS policy
并在custom_wsgi.config
目录上创建新的.ebextensions
文件并编写命令:
files:
"/etc/httpd/conf.d/wsgihacks.conf":
mode: "000644"
owner: root
group: root
content: |
WSGIPassAuthorization On