Terraform manual approval stage in gitlab ci

Hello,

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

`wait_for_approval:
   stage: wait_for_approval
    - echo "wait for approval"
  when: manual
  rules: 
    - 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

script:
  - echo hello