My packer build keeps failing when using a base ami which has cmk encrypted snapshots. If launched from the console, the instance passes all status checks hence there doesn't seem to be a problem with the ami or snapshots. The error I am seeing is:
*01:47:25* [1;32m==> amazon-ebs: Prevalidating AMI Name... [0m*01:47:26* [0;32m amazon-ebs: Found Image ID: ami-01544b839262649a2 [0m*01:47:26* [1;32m==> amazon-ebs: Using existing SSH private key [0m*01:47:26* [1;32m==> amazon-ebs: Launching a source AWS instance... [0m*01:47:27* [0;32m amazon-ebs: Instance ID: i-0570fffad0bc0f0a8 [0m*01:47:27* [1;32m==> amazon-ebs: Waiting for instance (i-0570fffad0bc0f0a8) to become ready... [0m*01:47:30* [1;31m==> amazon-ebs: Error waiting for instance (i-0570fffad0bc0f0a8) to become ready: unexpected state 'shutting-down', wanted target 'running' [0m*01:47:30* [1;32m==> amazon-ebs: Terminating the source AWS instance... [0m*01:47:38* [1;32m==> amazon-ebs: No volumes to clean up, skipping [0m*01:47:38* [1;31mBuild 'amazon-ebs' errored: Error waiting for instance (i-0570fffad0bc0f0a8) to become ready: unexpected state 'shutting-down', wanted target 'running' [0m*01:47:38* *01:47:38* ==> Some builds didn't complete successfully and had errors:*01:47:38* --> amazon-ebs: Error waiting for instance (i-0570fffad0bc0f0a8) to become ready: unexpected state 'shutting-down', wanted target 'running'*01:47:38* *01:47:38* ==> Builds finished but no artifacts were created.*01:47:38* Finished: FAILURE*01:47:38* Build step 'Packer' marked build as failure*01:47:38* Finished: FAILURE I have tried adding in the launch_block_device_mappings and ami_block_device_mappings into my packer.json file but that does not seem to fix the error. Any help would be appreciated. Please let me know if the contents of packer.json would be helpful. -- 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/mitchellh/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/e0364207-ad7f-493d-856e-dfe9920ab773%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
