Before, the S3 clients in each lib module were instantiating upon initial require, so mutating the global AWS configuration by setting a different profile did not propagate and all S3 clients used the "default" profile. This PR expands on the dependency injection pattern which was established in the code for "s3lib" and uses it when applicable.
Before, the S3 clients in each lib module were instantiating upon initial require, so mutating the global AWS configuration by setting a different profile did not propagate and all S3 clients used the "default" profile. This PR expands on the dependency injection pattern which was established in the code for "s3lib" and uses it when applicable.