Skip to content

Instantly share code, notes, and snippets.

@fatih
Created January 7, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatih/3acf6b438716fa82caa1 to your computer and use it in GitHub Desktop.
Save fatih/3acf6b438716fa82caa1 to your computer and use it in GitHub Desktop.
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}",
"aws_secret_key": "{{env `AWS_SECRET_KEY`}}",
},
"builders": [
{
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"ami_name": "latest-{{timestamp}}",
"ami_description":"Base Image",
"instance_type": "m3.medium",
"region": "us-east-1",
"source_ami": "ami-1111111",
"subnet_id": "subnet-1111111",
"vpc_id": "vpc-1111111",
"ssh_username": "ubuntu",
"type": "amazon-ebs",
"ami_regions": [
"eu-west-2",
"us-west-1",
"ap-southeast-2"
],
"tags": {
"Name": "packer-test"
}
}
],
"provisioners": [
{
"type": "shell",
"script": "script.sh",
"pause_before": "30s"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment