Hi,

Ok, so I've tried removing the encrypt options but still no joy:

   "builders": [{
     "type": "amazon-ebs",
     "communicator": "ssh",
     "ssh_pty": "true",
     "access_key": "{{user `aws_access_key`}}",
     "secret_key": "{{user `aws_secret_key`}}",
     "region": "eu-west-1",
     "source_ami": "ami-88e60ff1",
     "instance_type": "t2.nano",
     "ssh_username": "admin",
     "ami_name": "jenkins-slave-stretch{{timestamp}}",
     "ami_block_device_mappings": [ {
         "device_name": "/dev/xvda",
         "volume_size": 42,
         "volume_type": "gp2",
         "delete_on_termination": true
     } ]
   }],

Gives:

Build 'amazon-ebs' errored: Error creating AMI: InvalidBlockDeviceMapping: 
The device 'xvda' is used in more than one block-device mapping
status code: 400, request id: 93848ef4-ad21-4c5f-aa35-29c66c545a6a

I tried both with and without  "encrypt_boot": true, in case that made any 
difference, but it didn't change either way.

Thanks again,

Rich

-- 
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/660dc294-8db6-4aad-ad56-3877c29b873e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to