Packer is use to create an AMI
- Json
{
"buildes":[],
"provisioners": [],
"post-processors": []
}
- Create file with start.packer
- $ packer build start.packer
- packer build start.packer ( Debug )
{
"buildes":[
{
"type": "amazon-ebs",
"region": "us-west-1",
"access_key": "foo",
"secret_key": "bar",
"source_ami": "ami_9abea4fb",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "MiddleTier-{{isotime | clean_ami_name}}",
"ami_description": "Ami Designed WOW",
"tags" :{
"role": "My Ami"
},
"run_tags":{
"role": "building"
}
}
]
}