github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/terraform/aws/packer.json (about) 1 { 2 "builders": [{ 3 "type": "amazon-ebs", 4 "region": "us-east-1", 5 "source_ami_filter": { 6 "filters": { 7 "virtualization-type": "hvm", 8 "architecture": "x86_64", 9 "name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*", 10 "block-device-mapping.volume-type": "gp2", 11 "root-device-type": "ebs" 12 }, 13 "owners": ["099720109477"], 14 "most_recent": true 15 }, 16 "instance_type": "t2.medium", 17 "ssh_username": "ubuntu", 18 "ami_name": "hashistack {{timestamp}}" 19 }], 20 "provisioners": [ 21 { 22 "type": "shell", 23 "inline": [ 24 "sudo mkdir /ops", 25 "sudo chmod 777 /ops" 26 ] 27 }, 28 { 29 "type": "file", 30 "source": "../shared", 31 "destination": "/ops" 32 }, 33 { 34 "type": "file", 35 "source": "../examples", 36 "destination": "/ops" 37 }, 38 { 39 "type": "shell", 40 "script": "../shared/scripts/setup.sh", 41 "environment_vars": [ 42 "INSTALL_NVIDIA_DOCKER=true" 43 ] 44 }] 45 }