Skip to content

Instantly share code, notes, and snippets.

@sirocode
Last active September 16, 2016 11:11
Show Gist options
  • Save sirocode/909f9f90bb7756cf3594d1ea3505d645 to your computer and use it in GitHub Desktop.
Save sirocode/909f9f90bb7756cf3594d1ea3505d645 to your computer and use it in GitHub Desktop.
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [{
"name": "build-aws-hmv-ebs",
"type": "amazon-chroot",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "eu-west-1",
"ami_virtualization_type": "hvm",
"source_ami": "ami-903a42e3",
"ami_name": "packer-example {{timestamp}} coreos",
"device_path": "/dev/xvdg",
"tags": {
"component": "allapps",
"version": "404"
}
}],
"provisioners": [{
"type": "shell",
"inline": [
"docker pull centos:7"
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment