- Newest
- Most votes
- Most comments
Hi, your role needs more permissions than the above. See https://docs.aws.amazon.com/codebuild/latest/userguide/setting-up.html#setting-up-service-role for the full list
Hi, please send the log error from the pipeline itself?
[Container] 2023/06/22 21:07:31 Command did not exit successfully aws ecr get-login --region eu-west-1 | docker login --username AWS --password-stdin 883907968008.dkr.ecr.eu-west-1.amazonaws.com exit status 1 [Container] 2023/06/22 21:07:31 Phase complete: PRE_BUILD State: FAILED [Container] 2023/06/22 21:07:31 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: aws ecr get-login --region eu-west-1 | docker login --username AWS --password-stdin 883907968008.dkr.ecr.eu-west-1.amazonaws.com. Reason: exit status 1
Relevant content
- Accepted Answerasked 3 years ago
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 6 months ago
I noticed that the result is the same as per my below comment:
The action ecr:GetAuthenticationToken needs to have '*' as its resource.