title: ArchiveTransferManagerBuilder Unable to find a region via the region provider chain
body: <p>The AWS Glacier API gives me an error about not finding the region even when I specify it specifically:</p>
  
  <pre><code>EndpointConfiguration endpointConfig = new EndpointConfiguration("https://glacier.us-east-2.amazonaws.com/", "us-east-2");
  
  AmazonGlacier glacierClient = AmazonGlacierClientBuilder.standard()
    .withEndpointConfiguration(endpointConfig)
    .withCredentials(credentials)
    .build();
  
  ArchiveTransferManager xferMgr = new ArchiveTransferManagerBuilder()
      .withGlacierClient(glacierClient)
      .build();
  
      UploadResult result = xferMgr.upload("Data_Full", "my archive " + (new Date()), new File("C:\\myBigFile"));
  </code></pre>
  
  <p>I get this stack trace:</p>
  
  <blockquote>
    <p>com.amazonaws.SdkClientException: Unable to find a region via the region provider chain. Must provide an explicit region in the builder
    or setup environment to supply a region.  at
    com.amazonaws.client.builder.AwsClientBuilder.setRegion(AwsClientBuilder.java:371)
      at
    com.amazonaws.client.builder.AwsClientBuilder.configureMutableProperties(AwsClientBuilder.java:337)
      at
    com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
      at
    com.amazonaws.services.sqs.AmazonSQSClientBuilder.defaultClient(AmazonSQSClientBuilder.java:44)
      at
    com.amazonaws.services.glacier.transfer.ArchiveTransferManagerBuilder.resolveSQSClient(ArchiveTransferManagerBuilder.java:129)
      at
    com.amazonaws.services.glacier.transfer.ArchiveTransferManagerBuilder.getParams(ArchiveTransferManagerBuilder.java:135)
      at
    com.amazonaws.services.glacier.transfer.ArchiveTransferManagerBuilder.build(ArchiveTransferManagerBuilder.java:143)</p>
  </blockquote>
  
  <p>Note that I use the API to list vaults and it works:</p>
  
  <pre><code>AmazonGlacierClientBuilder clientbuilder = AmazonGlacierClientBuilder.standard();
  EndpointConfiguration endpointConfig = new EndpointConfiguration("https://glacier.us-east-2.amazonaws.com/", "us-east-2");
  clientbuilder.withEndpointConfiguration(endpointConfig);
  ProfilesConfigFile cf = new ProfilesConfigFile();
  AWSCredentialsProvider credentials = new ProfileCredentialsProvider(cf, "My AWS Profile Name");
  clientbuilder.setCredentials(credentials);
  AmazonGlacier glacierClient = CustomAmazonGlacierClientBuilder.buildCustomAmazonGlacierClient();
  ListVaultsRequest request = new ListVaultsRequest();
  ListVaultsResult result = glacierClient.listVaults(request);
  </code></pre>
  
  <p>I recently downloaded the AWS / Glacier libraries as an Eclipse plugin. It shows the .jar version of aws-java-sdk-opensdk-1.11.130.jar</p>
  
  <p>Does anyone have any insight as to what I could put in the code to satisfy the region requirement?  I'd rather do it programmatically</p>