You should be able to create multiple aws providers in your project, each with a different credential configuration that points to the the different accounts you want to access. Then you pass the appropriate provider to the resource you are managing for that account