move import of AWSCredentials inside init