to use aws-sdk version 1.x