mitchellh/packer — pull request #253 by phobos182 (2013-08-07 23:14:48+00:00)
Title: Added passing UserData to goamz.

Simple addition. Allow the configuration for EC2 to pass UserData from the configuration file into the instance.

Example:

{
"builders": [{
"type": "amazon-instance",
"access_key": "xxx",
"secret_key": "xxx",
"region": "us-east-1",
"source_ami": "ami-1234567",
"instance_type": "c1.xlarge",
"user_data": "#cloud-config\nhostname: system2",
"ssh_username": "ubuntu",
"account_id": "xxxx",
...
}]