AmazonEC2ContainerRegistryFullAccess
ポリシーを自分のユーザーに与えることで、ユーザーにECR承認を設定する際のAWSの指示に従おうとしました。AWS ECR GetAuthorizationToken
私のPCで実行しようとすると、aws ecr get-login
私は許可がないというエラーが表示されます。
An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::ACCOUNT_NUMBER:user/MY_USER is not authorized to perform: ecr:GetAuthorizationToken on resource: *
どうしたのですか?
aws get-session-tokenはMFAからトークンを取得できます - http://docs.aws.amazon.com/cli/latest/reference/sts/get-session-token.html –