support ami name instead of id