Skip to content

Commit db97804

Browse files
author
Lachlan Donald
authored
Merge pull request #636 from cawilson/linux-dynamic-source-ami-filter
Replaced Linux fixed AMI source with source AMI filter
2 parents eb95a5e + b680cb0 commit db97804

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packer/linux/buildkite-ami.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
{
22
"variables": {
3-
"region": "us-east-1",
4-
"ami": "ami-00b882ac5193044e4"
3+
"region": "us-east-1"
54
},
65
"builders": [
76
{
87
"type": "amazon-ebs",
98
"region": "{{user `region`}}",
10-
"source_ami": "{{user `ami`}}",
9+
"source_ami_filter": {
10+
"filters": {
11+
"name": "amzn2-ami-hvm-2.0.*-gp2",
12+
"architecture": "x86_64",
13+
"virtualization-type": "hvm"
14+
},
15+
"owners": ["amazon"],
16+
"most_recent": true
17+
},
1118
"instance_type": "m5.xlarge",
1219
"spot_price": "auto",
1320
"spot_price_auto_product": "Linux/UNIX (Amazon VPC)",

0 commit comments

Comments
 (0)