Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fastlane] Fix S3ClientHelper side effects (#16687)
* Updates S3ClientHelper to prevent side effects The initializer was calling Aws.config.update which was overwriting existing configuration. This was preventing access when using STS/Aws::AssumeRoleCredentials to assume a temporary IAM role. Removing the need to initialize with access_key/secret allows the caller to update Aws.config before calling fastlane and having their expected credentials used. Credentials will now be pulled from Amazon's documented sources. Maintains `region` option by initializing the S3 client with this option. * Updates match's S3Storage object to initialize S3ClientHelper with new interface. * Updates S3ClientHelper with option s3_client initializer option This is mainly to be used to inject this dependency in for specs, but if callers feel they would rather configure an s3 client this allows them to do so. * Updates S3ClientHelper with much more versatile initializer Reverts changes to keep initializer interface non-breaking. Updates creation of underlying S3 client to support passed in credentials (access_key/secret). Will use AWS config otherwise * Reverts change in S3Storage that prevented access_key/secret from being used if passed in
- Loading branch information