aws-amplifyとamazon-cognito-identity-jsとAWS SDKの違い
参考
AWS Cognito: Amplify vs amazon-cognito-identity-js vs AWS SDK
https://stackoverflow.com/questions/53837027/the-difference-between-aws-amplify-and-amazon-cognito-identity-js
判断軸
frontend/backend
frontendなら、どのframeworkと組み合わせるか?
React/Next.js、Vue/Nuxt.jsなど
secret-enabledを使うかどうか
なにこれ #??
adminのcredentialが必要なAPIを使う必要があるかどうか
e.g. adminCreateUser
aws-amplify
frontendで使用する
Amplifyを使用するclientでは必須
secret-enabledには対応していない
Cognitoに関する処理をするためには、amazon-cognito-identity-jsが必要
amazon-cognito-identity-js
AWS SDKのwrapperである
client/backendで動作する
aws-amplifyには依存していない
つまり、amazon-cognito-identity-js単体で使える
しかし、逆は違う
aws-amplifyのみでは、Cognito周りの処理はできない
Cognito周りの処理をするならamazon-cognito-identity-jsが必要
secret-enabledには対応していない
aws-sdk-js?
AWSで実行できる全ての操作ができる(?)
client/backendで動作する
割とlow layerなlibrary?
clientで使用するなら代わりに、もうちょい使いやすいaws-amplifyやamazon-cognito-identity-jsを使うことを検討したほうが良いとのこと
secret-enabledに対応している