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

aws ecs register-task-definition --cli-input-json file://〇〇.json でエラーが出る

Last updated at Posted at 2021-02-08

課題

aws ecs register-task-definition --cli-input-json file://〇〇.json

を実行しようとした時に

An error occurred (IncompleteSignatureException) when calling the RegisterTaskDefinition operation: 'ecr' not a valid key=value pair (missing equal-sign) in Authorization header: 'AWS4-HMAC-SHA256 Credential=aws ecr get-login-password --region us-east-2 | docker login --username 〇〇 --password-stdin 〇〇.dkr.ecr.〇〇.amazonaws.com/〇〇'.

という認証系のエラーが出る

解決法

ユーザー情報を確認しておかしかったら再設定する

$ aws configure
AWS Access Key ID [****]: 〇〇
AWS Secret Access Key [****]: 〇〇
Default region name [us-east-2]: 
Default output format [json]: 

設定したのちに再度コマンドを実行する

% aws ecs register-task-definition --cli-input-json file://〇〇.json
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?