Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-16664

"Unauthorised for ECR" when using private image hosted on AWS ECR

    XMLWordPrintable

Details

    Description

      Content of bitbucket-pipelines.yml:

      pipelines:
        default:
          - step:
              name: Name of step
              image: 
                name: <aws_account_id>.dkr.ecr.<region>.amazonaws.com/namespace/php:latest
                aws: 
                  access-key: $AWS_ACCESS_KEY
                  secret-key: $AWS_SECRET_KEY
              services:
                - redis
              script:
                - pwd
                - ls -l */*
      
      definitions:
        services:
          redis:
            image: redis:4.0
      

      Pipelines AWS user has full permission of READ on all resources on ECR.

      Result of pipelines:

      Attachments

        1. 2391537900-JHup.png
          2391537900-JHup.png
          18 kB
        2. 3906363619-download.png
          3906363619-download.png
          61 kB

        Activity

          People

            Unassigned Unassigned
            c01cde2bf162 duy9403
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: