Skip to content

Commit

Permalink
fix: amazon-ami-management plugin (#57)
Browse files Browse the repository at this point in the history
Recent versions of Packer have validation to ensure that the version of the plugin reported via the `describe` command match the version in the filename. Our fork of the `amazon-ami-management` plugin had its version set to `2.0.0-dev`, but the filename just had `2.0.0`.

The reason we had forked was to add the ability to filter by tags. This functionality is available in the upstream, which also has the fix for the version number, so we can switch back.
  • Loading branch information
adamconnelly authored Jun 24, 2024
1 parent 938ed7a commit 3a0cc2d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions aws.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ packer {
}

amazon-ami-management = {
version = "2.0.0"
source = "github.com/spacelift-io/amazon-ami-management"
version = "= 1.5.0"
source = "github.com/wata727/amazon-ami-management"
}
}
}
Expand Down Expand Up @@ -161,8 +161,9 @@ build {
post-processor "amazon-ami-management" {
# Deregister old AMIs, keep only the latest 180.
regions = var.ami_regions
tag_key = "Name"
tag_value = "Spacelift AMI"
tags = {
Name = "Spacelift AMI"
}
keep_releases = 180
}

Expand Down

0 comments on commit 3a0cc2d

Please sign in to comment.