LoginSignup
0
0

More than 3 years have passed since last update.

django-sesで「No handler was ready to authenticate」エラー

Last updated at Posted at 2021-01-12

事象

No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV3Handler'] Check your credentials
  • EC2では動く
  • ECS(Fargate)で上記エラー
  • IAM Roleには正しく設定されている(AdminRoleを設定しても解決されない)

解決策

このエラー自体はRoleの設定ミス等の他の原因でも発生するのですが(そのため調査に時間がかかりました・・)、ライブラリのバージョンが古いと発生する可能性があります。

django-ses is unable to use ECS task roles, uses instance role instead (boto3 required?) · Issue #124 · django-ses/django-ses

具体的には、django-ses が1.0未満(0.X)の場合に、認証ライブラリのbotoが古いために(botoではなくboto3である必要がある)、ECSのRoleをうまく扱えずにエラーが発生します。
他のライブラリでも、ECS環境で認証エラーが発生した場合は疑ってみてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0