code: private static void init() throws Exception {
  
          /*
           * The ProfileCredentialsProvider will return your [default]
           * credential profile by reading from the credentials file located at
           * (~/.aws/credentials).
           */
          ProfileCredentialsProvider credentialsProvider = new ProfileCredentialsProvider();
          try {
              credentialsProvider.getCredentials();
          } catch (Exception e) {
              throw new AmazonClientException(
                      "Cannot load the credentials from the credential profiles file. " +
                      "Please make sure that your credentials file is at the correct " +
                      "location (~/.aws/credentials), and is in valid format.",
                      e);
          }
          ec2 = AmazonEC2ClientBuilder.standard()
              .withCredentials(credentialsProvider)
              .withRegion("us-west-2")
              .build();
          s3  = AmazonS3ClientBuilder.standard()
              .withCredentials(credentialsProvider)
              .withRegion("us-west-2")
              .build();
          sdb = AmazonSimpleDBClientBuilder.standard()
              .withCredentials(credentialsProvider)
              .withRegion("us-west-2")
              .build();
      }
docs: The only information needed to create a client are security credentials
  consisting of the AWS Access Key ID and Secret Access Key. All other
  configuration, such as the service endpoints, are performed
  automatically. Client parameters, such as proxies, can be specified in an
  optional ClientConfiguration object when constructing a client.
  
  @see com.amazonaws.auth.BasicAWSCredentials
  @see com.amazonaws.auth.PropertiesCredentials
  @see com.amazonaws.ClientConfiguration