Created
May 27, 2015 03:45
-
-
Save caevyn/0d4e096655430a528c5e to your computer and use it in GitHub Desktop.
nginx packer file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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