'Not executing packer command using .gitlab-ci.yml file

I have written .gitlab-ci.yml file as per below and having a separate custom runner in AWS. But it's not getting executed. =====================================CI/CD file============================

CI/CD code: enter image description here

===========================================================

Error: enter image description here



Sources

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

Source: Stack Overflow

Solution Source