Closed seanyoungberg closed 2 years ago
:tada: Thanks for opening your first issue here! Welcome to the community!
:tada: This issue has been resolved in version 0.3.0 :tada:
The release is available on Terraform Registry and GitHub release
Posted by semantic-release bot
Describe the bug
Initially a 10.1.6 marketplace was published. Later an image was published for 10.1.6-h6. The data lookup for the AMI based on
var.vmseries_version
will match both of these causing indeterminate image selection. If the initial deployment was done prior to the release of the updated image, it will try to force recreation of the VM as it now matching a new image.https://github.com/PaloAltoNetworks/terraform-aws-vmseries-modules/blob/d90962ec49811151dbbd12f66de8eb09eb5f0700/modules/vmseries/main.tf#L10
Expected behavior
Specifying version example 10.1.6 should always explicitly match the AMI of that specific version and not additional hotfixes images matching the same pattern.
Current behavior
Subsequent apply after new marketplace image is published causes recreation of instance
Possible solution
A bit tricky as we need the wildcard in the data lookup. Probably some regex needed.
Steps to reproduce
AWS CLI using the same lookup to lookup AMI showing two matches
Screenshots
Context
Your Environment