Error Copying AMI (ami-id) to region (us-east-1): InvalidRequest:

131 views
Skip to first unread message

Ankit Agrawal

unread,
Mar 10, 2019, 1:46:33 PM3/10/19
to Packer
Error Copying AMI (ami-id) to region (us-east-1): InvalidRequest: Snapshot snap-id is encrypted. Creating unencrypted copy from an encrypted snapshot is not supported. I looked into the workaround mentioned here
https://github.com/hashicorp/packer/issues/6789 but I am still getting the same exception am using 1.3.5 packer version.

Kindly note its not boot volume(snapshot) that is encrypted, its additional volume which has been encrypted in us-east-1 region which I am trying to transfer to eu-central-1 using whatever is the default keys that get attached. When ami with encrypted ebs is shared from one region to another region within the same aws account using aws console without selecting or making any change, automatically new ami gets created with the encrypted snapshot on
Screen Shot 2019-03-10 at 7.14.04 PM.png

Rickard von Essen

unread,
Mar 10, 2019, 2:33:10 PM3/10/19
to packe...@googlegroups.com
Could you please provide the template and a full debug log from running Packer with PACKER_LOG=1 packer build... 

--
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/9e048708-04be-4c77-9776-cdcfcd141701%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ankit Agrawal

unread,
Mar 10, 2019, 2:56:08 PM3/10/19
to Packer
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 [DEBUG] Opening new ssh session
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 [DEBUG] starting remote command: sudo rm -rf '/tmp/packer-chef-client'
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 [INFO] RPC endpoint: Communicator ended with: 0
2019/03/10 18:45:37 [INFO] 0 bytes written for 'stdout'
2019/03/10 18:45:37 [INFO] 0 bytes written for 'stderr'
2019/03/10 18:45:37 [INFO] RPC client: Communicator ended with: 0
2019/03/10 18:45:37 [INFO] RPC endpoint: Communicator ended with: 0
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 [INFO] 0 bytes written for 'stdout'
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 [INFO] 0 bytes written for 'stderr'
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 [INFO] RPC client: Communicator ended with: 0
2019/03/10 18:45:37 [INFO] (telemetry) ending chef-client
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 Error asking for input: machine-readable UI can't ask
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 Error asking for input: machine-readable UI can't ask
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 Error asking for input: machine-readable UI can't ask
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 Error asking for input: machine-readable UI can't ask
2019/03/10 18:45:37 packer: 2019/03/10 18:45:37 Error asking for input: machine-readable UI can't ask
1552243537,,ui,say,==> amazon-ebs: Creating unencrypted AMI solr-2019-03-10_064026 from instance i-0a41d076be4abcac4
1552243537,,ui,message,    amazon-ebs: AMI: ami-0d0cb565bd81cb530
1552243537,,ui,say,==> amazon-ebs: Waiting for AMI to become ready...
2019/03/10 18:52:40 packer: 2019/03/10 18:52:40 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:40 packer: 2019/03/10 18:52:40 Error asking for input: machine-readable UI can't ask
1552243960,,ui,say,==> amazon-ebs: Copying AMI (ami-0d0cb565bd81cb530) to other regions...
1552243960,,ui,message,    amazon-ebs: Copying to: eu-central-1
1552243960,,ui,message,    amazon-ebs: Waiting for all copies to complete...
1552243961,,ui,error,==> amazon-ebs: 1 error(s) occurred:\n==> amazon-ebs: \n==> amazon-ebs: * Error Copying AMI (ami-0d0cb565bd81cb530) to region (eu-central-1): InvalidRequest: Snapshot snap-0fc05791ba6fceb65 is encrypted. Creating unencrypted copy from an encrypted snapshot is not supported.\n==> amazon-ebs: 	status code: 400%!(PACKER_COMMA) request id: 2af9d4a0-bb87-4de5-8cd4-1302b67f5034
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
1552243961,,ui,say,==> amazon-ebs: Deregistering the AMI because cancellation or error...
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
2019/03/10 18:52:41 packer: 2019/03/10 18:52:41 Error asking for input: machine-readable UI can't ask
1552243961,,ui,say,==> amazon-ebs: Cancelling the spot request...
1552243962,,ui,say,==> amazon-ebs: Terminating the source AWS instance...
Reply all
Reply to author
Forward
0 new messages