is not authorized to perform: ecr:InitiateLayerUpload on resource: って怒られたら
[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 ってオプションを追加
Author And Source
この問題について(is not authorized to perform: ecr:InitiateLayerUpload on resource: って怒られたら), 我々は、より多くの情報をここで見つけました https://qiita.com/sakusakupg/items/71aa1290deafd2fc7cdf著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .