Skip to content

Commit

Permalink
Merge pull request #636 from cawilson/linux-dynamic-source-ami-filter
Browse files Browse the repository at this point in the history
Replaced Linux fixed AMI source with source AMI filter
  • Loading branch information
lox committed Sep 24, 2019
2 parents eb95a5e + b680cb0 commit db97804
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packer/linux/buildkite-ami.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"variables": {
"region": "us-east-1",
"ami": "ami-00b882ac5193044e4"
"region": "us-east-1"
},
"builders": [
{
"type": "amazon-ebs",
"region": "{{user `region`}}",
"source_ami": "{{user `ami`}}",
"source_ami_filter": {
"filters": {
"name": "amzn2-ami-hvm-2.0.*-gp2",
"architecture": "x86_64",
"virtualization-type": "hvm"
},
"owners": ["amazon"],
"most_recent": true
},
"instance_type": "m5.xlarge",
"spot_price": "auto",
"spot_price_auto_product": "Linux/UNIX (Amazon VPC)",
Expand Down

0 comments on commit db97804

Please sign in to comment.