create a job to source the latest image
Instead of using images from the marketplace use the stigged image provided by CNAP
in AWS you can go in the AMIs and in the private image section select search by owner and use this: 235856440647. The amis area already there
a good way to find out the best image and make it dynamic would be to create a task to source the latest image and assign it to a TF variable, we can do a search using this:
aws ec2 describe-images --owners 235856440647 --filters "Name=name,Values=hardened-eks-optimized-al2023-1.29*" --query "Images | sort_by(@, &CreationDate)[-1].ImageId"
this is an example
Edited by Danilo Patrucco