title: setting the values of AWS_ACCESS_KEY_ID and AWS_SECRET_KEY using SQSConnectionFactory
body: <p>I am using <code>aws</code> <code>sqs</code> in my current project. I need to know how to set access key and secret key (to be read from a properties file) using <code>SQSConnectionFactory</code>. </p>
  
  <p>Please find my code below:</p>
  
  <pre><code>public void createConnectionFactory() throws JMSException{
      try {
          SQSConnectionFactory connectionFactory = SQSConnectionFactory.builder()
              .withRegion(Region.getRegion(Regions.US_EAST_1))
              .withAWSCredentialsProvider(new EnvironmentVariableCredentialsProvider())
              .build();
  
              // Create the connection.
              SQSConnection connection = connectionFactory.createConnection();
      }
      catch (JMSException ex)
      {
          throw ex;
      }
  }
  </code></pre>
  
  <p>I tried searching methods through which I can set, but couldn't find any. How to proceed from here? Should I write another method for Basic Authentication and invoke it here or is there any better way to do this?</p>