fixed amazon _make_instance_map function