1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

An error occurred (UnrecognizedClientException) when calling the GetAuthorizationToken operation:の対処法

Last updated at Posted at 2024-11-02

症状

ECSにPUSHしようとしたときに下記のメッセージが表示されました。
error
 aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin hoge.dkr.ecr.ap-northeast-1.amazonaws.com
northeast-1.amazonaws.com

An error occurred (UnrecognizedClientException) when calling the GetAuthorizationToken operation: The security token included in the request is invalid.
Error: Cannot perform an interactive login from a non TTY device
翻訳
GetAuthorizationToken 操作の呼び出し時にエラー (UnrecognizedClientException) が発生しました: 要求に含まれるセキュリティ トークンが無効です。
エラー: TTY 以外のデバイスから対話型ログインを実行できません

認証エラーが出ているみたい

解決策

aws configreでAWSCLIにログインする為の設定を行うことで、エラーが解消されました
 aws configure
AWS Access Key ID []: アクセスキーを書くところ
AWS Secret Access Key []: シークレットアクセスキーを書くところ   
Default region name [None]: リージョンを書くところ
Default output format [None]: 出力結果の形式を書くところ

参考

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?