2019/08/25
記事作成時点での状況なので、↑のissueを見ると状況が更新されているかも。
amplify add authの最初の質問
Select the authentication/authorization services that you want to use:
の設問で、
User Sign-Up, Sign-In, connected with AWS IAM controls (Enables per-user Storage features for images or other content, Analytics, and more)
以外を選択した人に発生するらしい。
既存AmplifyCLIで作った場合も、1.12.0で新規作成してpushした場合も同様。
バグなので修正中らしい、頑張ってほしい。
対処方法は
AmplifyCLIのバージョンを上げない
AmplifyCLIをyarn global upgrade @aws-amplify/[email protected]
という感じでダウングレードする ← これにした ☕️
amplify auth updateで設定更新
Select the authentication/authorization services that you want to use:
の設問で、
User Sign-Up, Sign-In, connected with AWS IAM controls (Enables per-user Storage features for images or other content, Analytics, and more)
で回答し、cognitoを更新するか、作り直す。
1.12.0、他もfunctionのpush時とかにエラーメッセージがnull
で落ちたりしている