Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22232

Bamboo automatically handles authentication tokens in Docker tasks with Amazon ECR

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Tasks
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            feeaafc2eddb Mohamed Ayman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: