Missing endpoint

amazon-windows-ami: Error querying AMI: MissingEndpoint: ‘Endpoint’ configuration is required for this service

GETTING ABOVE ERROR WHILE RUNNING PIPELINE WITH SHARED RUNNER

++++++++++++++++++++++++++++++++++++

here is my file ---------pipeline works well with VALIDATE but failed with build

image:
name: hashicorp/packer:latest
entrypoint:
- ‘/usr/bin/env’
- ‘PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin’

before_script:

  • packer --version

stages:

  • validate
  • build
  • test
  • deploy

validate:
stage: validate
script:
- packer validate windowsami.json

  • packer build windowsami.json

hi, i think that the problem didn’t come from your pipeline structure, but from your script.

Your error comes from which line ?