title: Dynamically provide awsconfiguration while uploading files using TransferUtility
body: <p><strong>Current Implementation</strong></p>
  
  <p>I have implemented file upload functionality using <code>AWS Mobile SDK</code> and according to their documentation, we have to store an <code>awsconfiguration.json</code> file (this file contains <code>CognitoIdentity</code>,<code>IdentityManager</code> &amp; <code>S3TransferUtility</code>) and we create an instance of <code>TransferUtility</code> like this for uploading :</p>
  
  <pre><code>TransferUtility transferUtility = TransferUtility.builder()
              .context(getApplicationContext())
              .awsConfiguration(AWSMobileClient.getInstance().getConfiguration())
              .s3Client(new AmazonS3Client(AWSMobileClient.getInstance()))
              .build();
  </code></pre>
  
  <p>This implementation works great when we have just one <code>AWS Instance</code></p>
  
  <p><strong>Required Implementation</strong></p>
  
  <p>I have a requirement where i have to implement this for more than one <code>AWS Instance</code>. To explain better, we have more than one AWS account for different clients and each account will have their own s3 bucket. </p>
  
  <p>Now i have to upload files based on the type of client i logged in within my app. This means that their <code>awsconfiguration.json</code> file will be different for each client.</p>
  
  <p><strong>Question</strong></p>
  
  <p>Is there any method by which i can dynamically generate awsconfiguration.json or better yet, pass values for fields like CognitoIdentity &amp; S3TransferUtility when uploading file?</p>