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

is not authorized to perform: ecr:InitiateLayerUpload on resource: って怒られたら

Last updated at Posted at 2021-08-24
[ecs_test]$ docker push XXXXXXXXXXXX.dkr.ecr.ap-northeast-1.amazonaws.com/hello-world-ecs-test-2:latest
The push refers to repository [XXXXXXXXXXXX.dkr.ecr.ap-northeast-1.amazonaws.com/hello-world-ecs-test-2]
62fa8530d588: Preparing 
fb04ab8effa8: Preparing 
8f736d52032f: Preparing 
009f1d338b57: Preparing 
678bbd796838: Preparing 
d1279c519351: Waiting 
f68ef921efae: Waiting 
denied: User: arn:aws:iam::YYYYYYYYYYYY:user/your_name is not authorized to perform: ecr:InitiateLayerUpload on resource: arn:aws:ecr:ap-northeast-1:XXXXXXXXXXXX:repository/hello-world-ecs-test-2

keyを追加して

~/.aws/credentials
  1 [default]                                                                                                                                             
  2 aws_access_key_id = aaaaaaaaaaaaaaaaaaa
  3 aws_secret_access_key = bbbbbbbbbbbbbbbbbbbb
  4 
  5 [ecs-user]
  6 aws_access_key_id = ccccccccccccccccccc
  7 aws_secret_access_key = ddddddddddddddddddddddd

-- profile ecs-user ってオプションを追加

image.png

3
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
3
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?