Closed chan-vince closed 4 months ago
Could you describe how fck-nat-al2023-hvm-*
is not matching the fck-nat-al2023-hvm-1.3.0-20240125-arm64-ebs
pattern? I'm having troubles understanding this part. It should already be getting you the latest fck-nat AL2023 image.
Furthermore your change would end up matching any non-AL2023 images as well.
Ah crap I was looking at an old module in my .terraform folder, and I should have had a coffee before making this. Apologies for wasting your time!
No worries and thank you, the intention matters! :)
The versions later than v1.2.1 have a new AMI naming scheme, to reflect that they're now based on Amazon Linux 2023.
This PR updates the data block which fetches the latest AMI, so that if you don't specify a specific AMI and are just happy with the latest one, then the new AMI will be found.
As above, the images are now called
fck-nat-al2023-hvm-1.3.0-20240125-arm64-ebs
, which are filtered out from the old filter offck-nat-al2023-hvm-*
.There are other features in 1.3.0 which sound like they also need corresponding Terraform changes to support, but I have not looked into that here.