[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 ってオプションを追加