open-nomad/terraform/aws/packer.json
Turtle Kalus 0b1c516f7c
Use latest AMI for Ubuntu Xenial based on search (#9076)
Also, remove public share for ami build.
2020-10-14 11:01:54 -04:00

46 lines
975 B
JSON

{
"builders": [{
"type": "amazon-ebs",
"region": "us-east-1",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"architecture": "x86_64",
"name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*",
"block-device-mapping.volume-type": "gp2",
"root-device-type": "ebs"
},
"owners": ["099720109477"],
"most_recent": true
},
"instance_type": "t2.medium",
"ssh_username": "ubuntu",
"ami_name": "hashistack {{timestamp}}"
}],
"provisioners": [
{
"type": "shell",
"inline": [
"sudo mkdir /ops",
"sudo chmod 777 /ops"
]
},
{
"type": "file",
"source": "../shared",
"destination": "/ops"
},
{
"type": "file",
"source": "../examples",
"destination": "/ops"
},
{
"type": "shell",
"script": "../shared/scripts/setup.sh",
"environment_vars": [
"INSTALL_NVIDIA_DOCKER=true"
]
}]
}