Hi there?
I was able to created the custom kms key (not the default one by AWS/ebs)
encrypted ebs volume in AWS on Centos as below.
"variables":
{
.........
"kms_key_id_us-west-1" : "arn:aws:kms:us-west-1:xxxx:key/
xxxxx-xxx-xxxx-xxxx-xxxxxxxxxxx",
"kms_key_id_us-east-1" : "arn:aws:kms:us-east-1:xxxx:key/
xxxxx-xxx-xxxx-xxxx-xxxxxxxxxxx",
"kms_key_id_eu-west-2" : "arn:aws:kms:eu-west-2:xxxx:key/
xxxxx-xxx-xxxx-xxxx-xxxxxxxxxxx",
"kms_key_id_eu-central-1" : "arn:aws:kms:eu-central-1:xxxx:key/
xxxxx-xxx-xxxx-xxxx-xxxxxxxxxxx"
},
"builders":
{ "name" : "aws", "type" : "amazon-ebs", "access_key" : "{{user
`aws_access_key`}}", "secret_key" : "{{user `aws_secret_key`}}", "region" :
"{{user `aws_region`}}", "instance_type" : "t2.xlarge", "ssh_timeout" :
"10m", ....... "ssh_username" : "xxxx", "force_deregister" : true,
"kms_key_id" : "{{user `kms_key_id__us-west-1`}}", "region_kms_key_ids" : {
"us-west-1": "{{user `kms_key_id_us-west-1`}}",
"us-west-1": "{{user `kms_key_id_us-west-1`}}",
"us-west-1": "{{user `kms_key_id_us-west-1`}}",
"us-west-1": "{{user `kms_key_id_us-west-1`}}",
}, "tags": { "OS": "CentOS 7.X", "Type": "Latest", "Version": "{{user
`version`}}" }, "ami_regions" : [ "us-west-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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/6970dc51-caeb-4ed5-bf3d-87c008db5266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.