2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Amplify] amplify push が default authorization type と additional auth type の入れ替えを検知しない時の対処法

Last updated at Posted at 2021-07-03

バージョン

amplify cli 5.1.0
macOS 11.4

状況

amplify update apidefault authorization typeadditional auth type (1つだけ設定されている) が逆になるように設定した後amplify pushしたが、No changes detectedと表示されてしまい、クラウド側に反映できない。

default authorization typeAPI KEY
additional auth typeAmazon Cognito User Pool

と設定してある時、amplify update apiで、

default authorization typeAmazon Cognito User Pool
additional auth typeAPI KEY

に設定し直した後amplify pushしても、No changes detectedと表示される。

対処法

先にamplify update apidefault authorization typeだけ設定してamplify pushしておくと上手くいった。

default authorization typeAPI KEY
additional auth typeAmazon Cognito User Pool

と設定してあるなら、先にamplify update apiで、

default authorization typeAmazon Cognito User Pool

だけ設定してamplify pushしてから、amplify update apiで、

default authorization typeAmazon Cognito User Pool
additional auth typeAPI KEY

に設定してamplify pushすると上手く行く。

2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?