==> web.ami: Uploading X509 Certificate...
==> web.ami: Bundling the volume...
web.ami: bash: sudo ec2-bundle-vol: command not found
web.ami:
web.ami:
web.ami:
==> web.ami: Volume bundling failed. Please see the output above for more
==> web.ami: details on what went wrong.
"bundle_vol_command": "sudo ec2-bundle-vol --no-filter"
"bundle_vol_command": "sudo -E -n ec2-bundle-vol -k {{.KeyPath}} -u {{.AccountId}} -c {{.CertPath}} -r {{.Architecture}} -e {{.PrivatePath}} -d {{.Destination}} -p {{.Prefix}} --batch"
ubuntu@ip-10-180-138-109:~$ # Try to run the commandubuntu@ip-10-180-138-109:~$ sudo -E -n ec2-bundle-vol
sudo: ec2-bundle-vol: command not found
ubuntu@ip-10-180-138-109:~$ # Find out where command is for ubuntu userubuntu@ip-10-180-138-109:~$ which ec2-bundle-vol/usr/local/share/ec2_tools/bin/ec2-bundle-volubuntu@ip-10-180-138-109:~$ # Look at ubuntu user's pathubuntu@ip-10-180-138-109:~$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/share/ec2_tools/binubuntu@ip-10-180-138-109:~$ # Become rootubuntu@ip-10-180-138-109:~$ sudo bashubuntu@ip-10-180-138-109:~$ # Try to run command as root without sudoroot@ip-10-180-138-109:~# ec2-bundle-volThe program 'ec2-bundle-vol' is currently not installed. You can install it by typing:apt-get install ec2-ami-toolsYou will have to enable the component called 'multiverse'ubuntu@ip-10-180-138-109:~$ # Compare root's pathroot@ip-10-180-138-109:~# echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
"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"
"bundle_upload_command": "sudo sh -E -n /usr/local/share/ec2_tools/bin/ec2-upload-bundle -b {{.BucketName}} -m {{.ManifestPath}} -a {{.AccessKey}} -s {{.SecretKey}} -d {{.BundleDirectory}} --batch --retry"
==> web.ami: Error registering AMI: HTTP 404 (Not Found) response for URL http://s3.amazonaws.com:80/<our_s3_bucket_name>/image-1384869546.manifest.xml: check your manifest path is correct and in the correct region. (InvalidManifest)
==> web.ami: Pausing after run of step 'StepUploadX509Cert'. Press any key to continue.
==> web.ami: Bundling the volume...
==> web.ami: Pausing after run of step 'StepBundleVolume'. Press any key to continue.
==> web.ami: Uploading the bundle...
"bundle_vol_command": "echo \"env EC2_HOME=/usr/local/share/ec2_tools/ /usr/local/share/ec2_tools/bin/ec2-bundle-vol -k {{.KeyPath}} -u {{.AccountId}} -c {{.CertPath}} -r {{.Architecture}} -e {{.PrivatePath}} -d {{.Destination}} -p {{.Prefix}} --batch --no-filter\"> /tmp/bundle_cmd;sudo -E sh /tmp/bundle_cmd",
"bundle_upload_command": "echo \"env EC2_HOME=/usr/local/share/ec2_tools/ /usr/local/share/ec2_tools/bin/ec2-upload-bundle -b {{.BucketName}} -m {{.ManifestPath}} -a {{.AccessKey}} -s {{.SecretKey}} -d {{.BundleDirectory}} --batch --retry\"> /tmp/upload_cmd;sudo -E sh /tmp/upload_cmd"
--