Terraform manual approval stage in gitlab ci


I was trying to impliment a manual approval stage for my Terraform pipeline using Gitlab CI.

   stage: wait_for_approval
    - echo "wait for approval"
  when: manual
    - if: < condition>`

But when I run the pipeline am get the below error. Can somebody please help me?

Unable to create pipeline
jobs wait for approval config should implement a script: or a trigger: keyword

Hi @Mentor

as the error says, you need to have a script section in the job. Even if it will be just

  - echo hello