Find the correct AMI for CF templates