I am getting following error while copying an encrypted AMI (with encrypted
snapshot) to different regions : *Error modify AMI attributes:
UnsupportedOperation: Encrypted snapshots can’t be shared publicly. Specify
another snapshot.*
My config.json builder is somewhat like this:
{
"name": "amzn-web",
"type": "amazon-ebs",
"region": "{{user `region`}}",
"source_ami": "{{user `source_ami`}}",
"instance_type": "m3.medium",
"ssh_username": "ec2-user",
"ssh_timeout": "5m",
"ami_name": "{{user `ami_name`}}",
"ami_groups": ["all"],
"ami_regions": "{{user `ami_regions`}}",
"region_kms_key_ids": {
"eu-central-1": "",
"ap-south-1": ""
},
"kms_key_id": "key_id",
"encrypt_boot": true,
"snapshot_groups": ["all"]
}
Although on checking the AMI's on console I can see all the AMI's are
created with private visibility and the snapshots are also mounted (checked
by launching the AMI). Snapshots are also having private visibility.
I am guessing it's trying to make the snapshots public - do we have any
option to have it private only ? or am I guessing something wrong and
there's some correction / update needed in my config.json ?
--
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/e0cdbafd-a80d-486e-b51a-010e8f9667d1%40googlegroups.com.