Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Description
Problem definition
When using the Docker task to pull images from Amazon ECR the authentication token is valid for 12 hours. The build will fail as soon as the token expired unless the token is updated with a new one
Suggested Solution
It would be nice if we have Bamboo to automatically refresh the authentication tokens instead of having users updating it manually.
Workaround
You can add a script task to update the token manually before the docker task.
aws ecr get-login-password --region ca-here-1 | docker --debug login --username AWS --password-stdin 1234567890.dkr.ecr.ca-here-1.amazonaws.com