Check for existing AMIs.

If we already have an AMI for a particular configuration, use that instead of
requesting a new one.