CI/CD Failed Job

I’m trying to set up a CI/CD Pipeline to deploy my App to Amazon. I’m following the steps in the GitLab document here:

but I’m stuck at the first step after I added the deploy to Amzaon EC2 template to the yml file:

  - template: AWS/Deploy-ECS.gitlab-ci.yml

The Build job fails with the following error:

Uploading artifacts…
WARNING: gl-auto-build-variables.env: no matching files. Ensure that the artifact path is relative to the working directory
ERROR: No files to upload
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1`

Can anyone help me get past this please?