Error when including template AWS/Deploy-ECS.gitlab-ci.yml

I have an existing .gitlab-ci.yml file with stages: build, deploy and manual. I want to use the GitLab template AWS/Deploy-ECS.gitlab-ci.yml and I am following these instructions. When I include the template in my CI file I get the following error:
- review_ecs job: chosen stage does not exist; available stages are .pre, build, deploy, manual, .post

The template AWS/Deploy-ECS.gitlab-ci.yml includes two other templates,

include:
  - template: Jobs/Build.gitlab-ci.yml
  - template: Jobs/Deploy/ECS.gitlab-ci.yml

here and here but for some reason my template is not picking those up.

We are running a self hosted GitLab instance version 16.7

1 Like

Make sure you are defining the stages in your .gitlab-ci.yml

stages:

  • build
  • test
  • review
  • dast
  • deploy
  • production
  • cleanup
  • manual (in your case)