I've been going over all of the documentation and I can't figure out why this isn't working:
echo get_attachment_link($post_id, 'medium');
Is wp_get_attachment_url deprecated? I don't want the attachment's page. There's no mention of a replacement function to return the full URL to the attached image.