title: Image not found: 404 Client Error: Not Found: aws-ecr-push-image atlassian pipeline
body: <p>I'm using the Atlassian pipeline to build and push the docker image to AWS ECR but build is getting tear down with following message.</p>
  
  <p>INFO: Executing the aws-ecr-push-image pipe... </p>
  
  <p>INFO: Found credentials in environment variables.</p>
  
  <p>INFO: Successfully logged in to <a href="https://XXXXXXX.dkr.ecr.us-east-1.amazonaws.com" rel="noreferrer">https://XXXXXXX.dkr.ecr.us-east-1.amazonaws.com</a></p>
  
  <p><strong>✖ Image not found: 404 Client Error: Not Found ("no such image: image-test: No such image: image-test:latest")</strong></p>
  
  <p>Here is my bitbucket-pipelines.yml code:</p>
  
  <pre><code>    - step:
          name: docker build running
          services: 
            - docker
          script: 
            - docker build -t image-test .
          artifacts:
            - Image_Test.zip  
      - step:
          name: Updating docker image
          script:
            - pipe: atlassian/aws-ecr-push-image:1.0.2
              variables:
                AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
                AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
                AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
                IMAGE_NAME: image-test
                TAGS: '${BITBUCKET_TAG} latest'
  </code></pre>
  
  <p><strong>I confirm that this image exists in my ECR repositories.</strong></p>