-
Bug
-
Resolution: Timed out
-
Low
-
1
-
Severity 3 - Minor
-
35
-
Issue Summary
Pipelines fail to report indentation error in the "aws" section in bitbucket-pipelines.yml
Steps to Reproduce
- Try editing bitbucket-pipelines.yml
- Add:
image: name: 034534534535.ecr.us-east-1.amazonaws.com/dev/ecr:v4 aws: access-key: $ECR_ACCESS_KEY secret-key: $ECR_SECRET_KEY
- 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.