Use latest AMI for Ubuntu Xenial based on search (#9076)

Also, remove public share for ami build.
This commit is contained in:
Turtle Kalus 2020-10-14 08:01:54 -07:00 committed by GitHub
parent 115edb53a0
commit 0b1c516f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 3 deletions

View File

@ -2,11 +2,20 @@
"builders": [{
"type": "amazon-ebs",
"region": "us-east-1",
"source_ami": "ami-80861296",
"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}}",
"ami_groups": ["all"]
"ami_name": "hashistack {{timestamp}}"
}],
"provisioners": [
{