Files
nomad/e2e/terraform/packer/packer.json
Tim Gross 554bdcc0ca e2e: use AMI filter for Ubuntu packer image (#9086)
Instead of hard-coding the base AMI for our Packer image for Ubuntu, use the
latest from Canonical so that we always have their current kernel patches.
2020-10-14 11:22:33 -04:00

45 lines
986 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-bionic-18.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",
"iam_instance_profile": "packer_build",
"ami_name": "nomad-e2e-{{timestamp}}",
"tags": {
"OS": "Ubuntu"
}
}
],
"provisioners": [
{
"type": "file",
"source": "./linux",
"destination": "/tmp/linux"
},
{
"type": "file",
"source": "../config",
"destination": "/tmp/config"
},
{
"type": "shell",
"script": "./linux/setup.sh"
}
]
}