Unable to create an encrypted AMI using a custom kms key

347 views
Skip to first unread message

chakradhara konduru

unread,
May 23, 2019, 3:24:14 PM5/23/19
to Packer
Hi please help me here,

I am trying to create an AMI that its root volume to be encrypted with a custom kms key id,

The image is failing to copy the AMI,

amazon-ebs: Creating encrypted copy in build region: us-east-1
amazon-ebs: Waiting for all copies to complete...
==> amazon-ebs: 1 error(s) occurred:
==> amazon-ebs:
==> amazon-ebs: * Error waiting for AMI (ami-046d5f616127cf0e1) in region (us-east-1): ResourceNotReady: failed waiting for successful resource state



Here is the config file, Please suggest what is wrong in here. I am using latest 1.41 version of packer.


"encrypt_boot": true,
"kms_key_id": "{{user kms_arn}}",
"ami_regions": "us-east-1"

Thanks in advance

Vinod Tripathi

unread,
Oct 13, 2019, 8:31:07 AM10/13/19
to Packer
Hi,

Just wanted to check if you get solution for your issue?
I am also getting the same error and I have tried all version of packer, but getting same error everytime...
Please share your solution if you got one.

Thanks

Rickard von Essen

unread,
Oct 14, 2019, 12:24:36 AM10/14/19
to packe...@googlegroups.com
Please provide more details. Attache a full template and debug log (from running Packer with PACKER_LOG=1).

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/2924e98c-bb10-47ac-a50e-42546a0e92b6%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages