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

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

XMLWordPrintable

      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:

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

              Unassigned Unassigned
              09383672-bdce-4af9-a1c2-c212da65c2e1 Deleted Account (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: