More than 500 workers will be affected by Amazon's decision to shut down a portion of a local facility.