Amazon.com Inc. will shut down all warehouses and lay off employees in the French-speaking Canadian province of Quebec.