The announcement comes ahead of Amazon's second-quarter earnings.