Amazon ec2 包装器外壳供应器在自定义ami上失败

Amazon ec2 包装器外壳供应器在自定义ami上失败,amazon-ec2,azure-devops,packer,Amazon Ec2,Azure Devops,Packer,我一直在azure devops的标准aws linux ami上运行packer构建。我刚刚更新了packer.json,改为使用内部加固的映像,它在shell Provisionier上的启动失败,错误如下: ==> amazon-ebs: Provisioning with shell script: /home/vsts/work/1/s/packer/elasticsearch/scripts/setup.sh ==> amazon-ebs: Terminating the

我一直在azure devops的标准aws linux ami上运行packer构建。我刚刚更新了packer.json,改为使用内部加固的映像,它在shell Provisionier上的启动失败,错误如下:

==> amazon-ebs: Provisioning with shell script: /home/vsts/work/1/s/packer/elasticsearch/scripts/setup.sh
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored: Error uploading script: Process exited with status 1

==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error uploading script: Process exited with status 1

==> Builds finished but no artifacts were created.
##[error]Error: /opt/hostedtoolcache/packer/1.4.3/x64/packer failed with return code: 1

这是一条错误消息,错误在别处吗?我不认为上传在以下情况下会开始失败:X?

使用env var PACKER\u LOG=1重新运行env var PACKER\u LOG=1