w00t w00t!!
finally got it working, thanks to all that helped.
the working config is:
"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}}",
"encrypt_boot": true,
"ami_block_device_mappings": [ {
"device_name": "xvda",
"volume_size": 42,
"volume_type": "gp2",
"delete_on_termination": true
} ]
}],
The important bit is that while the source image uses /dev/xvda as the boot
image the device name specified is "xvda". I don't know why this
distinction is needed, but it works.
--
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/c0df5977-e6ca-44b9-b594-26ad3b849028%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.