Hi all! 
We are trying to make an Instance-Based (not EBS) AMI from the Ubuntu base 
AMI (ami-0c08d8bfef5334472) and have an issue in Packer.
After we ran $ PACKER_LOG=1 packer build template.json this is the message 
we get,

==> amazon-instance: Bundling the volume...
2022/02/06 11:25:19 packer.exe plugin: [DEBUG] Opening new ssh session
2022/02/06 11:25:20 packer.exe plugin: [DEBUG] starting remote command: 
sudo sh -E -n /usr/local/share/ec2_tools/bin/ec2-bundle-vol -k 
/tmp/key.pem -u 210912836771 -c /tmp/cert.pem -r x86_64 -e /tmp -d /tmp -p 
image-1644139345 --batch
==> amazon-instance: sh: 0: Can't open 
/usr/local/share/ec2_tools/bin/ec2-bundle-vol
2022/02/06 11:25:20 packer.exe plugin: [ERROR] Remote command exited with 
'127': sudo sh -E -n /usr/local/share/ec2_tools/bin/ec2-bundle-vol -k 
/tmp/key.pem -u 210912836771 -c /tmp/cert.pem -r x86_64 -e /tmp -d /tmp -p 
image-1644139345 --batch
==> amazon-instance: Volume bundling failed. Please see the output above 
for more

ec2-ami-tools are installed, 
"bundle_vol_command": "sudo sh -E -n 
/usr/local/share/ec2_tools/bin/ec2-bundle-vol -k {{.KeyPath}} -u 
{{.AccountId}} -c {{.CertPath}} -r {{.Architecture}} -e {{.PrivatePath}} -d 
{{.Destination}} -p {{.Prefix}} --batch",

We would love to get some help, explanation, or anything that could help. 
Please let me know if you need any more details. 

Thank you! 

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/e1b750eb-02a8-42fb-bb75-53ffbde2c576n%40googlegroups.com.

Reply via email to