Skip to content

Instantly share code, notes, and snippets.

@caevyn
Created May 27, 2015 03:45
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 caevyn/0d4e096655430a528c5e to your computer and use it in GitHub Desktop.
Save caevyn/0d4e096655430a528c5e to your computer and use it in GitHub Desktop.
nginx packer file
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "ap-southeast-2",
"source_ami": "ami-fd9cecc7",
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"ami_name": "nginx-base {{timestamp}}"
}],
"provisioners": [{
"type": "shell",
"inline": [
"sleep 30",
"sudo yum -y update",
"sudo yum install -y nginx"
]
}],
"post-processors": ["vagrant"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment