Pinterest deepens Amazon tie-up with $4B cloud deal through 2031, leveraging AWS chips to accelerate AI vision.