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

Pipelines fails to validate indentation error in "aws" section in YAML

XMLWordPrintable

      Issue Summary

      Pipelines fail to report indentation error in the "aws" section in bitbucket-pipelines.yml

      Steps to Reproduce

      1. Try editing bitbucket-pipelines.yml
      2. Add:
      image: 
         name: 034534534535.ecr.us-east-1.amazonaws.com/dev/ecr:v4 
      aws: 
            access-key: $ECR_ACCESS_KEY 
            secret-key: $ECR_SECRET_KEY
      
      1. No errors reported, this indeed fails the image pull with 403.

      Expected Results

      Bitbucket pipelines validator should catch this.

      Actual Results

      Bitbucket pipelines validator doesn't catch this, 

      Correct YAML syntax as per official documentation:

      image:
        name: <aws_account_id>.dkr.ecr.<region>.amazonaws.com/openjdk:8
        aws: 
          access-key: $AWS_ACCESS_KEY
          secret-key: $AWS_SECRET_KEY
      

      Workaround

      Referring to the documentation.

              Unassigned Unassigned
              ssingh4 Saurabh Singh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: