Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Packer AWS build (Ubuntu Server 12.04 LTS) with apt-get
{
"builders": [{
"type": "amazon-ebs",
"access_key": "your aws access key",
"secret_key": "your aws secret key",
"region": "us-east-1",
"source_ami": "ami-967edcff",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ssh_timeout": "10m",
"ami_name": "ubuntu1204lts",
"tags": {
"OS_Version": "Ubuntu 12.04 LTS",
"Release": "Stable"
}
}],
"provisioners": [{
"type": "shell",
"inline": [
"sudo ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime",
"sudo apt-get update",
"sudo apt-mark hold grub grub-common grub-pc grub-pc-bin grub2-common grub-legacy-ec2",
"sudo apt-get -y upgrade"
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.