moved the aws specific code to the aws provider