【发布时间】:2017-04-12 05:55:57
【问题描述】:
我已经使用 aws configure 配置了凭据。 aws configure list 看起来不错。Python/django 能够在 shell_plus 中找到凭据,但在通过 gunicorn/supervisor 运行 django 时无法找到凭据。
这很奇怪
【问题讨论】:
-
请分享代码,以获得更多说明
-
嗨,它与代码无关。当以 ubuntu 用户身份运行 gunicorn 时,它正在获取凭据,但使用 supervisorctl 运行 gunicorn 却没有
-
凭证在哪里?它们是环境变量吗?
-
检查你的gunicorn /supervisor使用的用户环境。否则,您必须让它们指向您使用 aws configure 设置访问权限的用户。
标签: python django amazon-web-services boto3