"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. 2391537900-JHup.png
          2391537900-JHup.png
          18 kB
        2. 3906363619-download.png
          3906363619-download.png
          61 kB

            Assignee:
            Unassigned
            Reporter:
            Deleted Account (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: