aws-sdk was required too early