Created
January 7, 2015 13:56
-
-
Save fatih/3acf6b438716fa82caa1 to your computer and use it in GitHub Desktop.
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": "{{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