'(gitlab to aws s3): did not find expected key while parsing a block mapping at line 1 column 1

This GitLab CI configuration is invalid: (): did not find expected key while parsing a block mapping at line 1 column 1.

I have below gitlab-ci.yml file which shows error in pipeline deploy: image: stage: deploy name: banst/awscli entrypoint: [""] script: - aws configure set region us-east-1 - aws s3 sync . s3://$S3_BUCKET/
only:

  • main

I have done

  • gitlab runner register and running
  • added aws s3 bucket and aws key and secret key id in variable


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source