title: How To Override Default SQS Configurations For Spring Cloud AWS Messaging
body: <p>Specifically looking to override the default <code>AmazonSQSAsync</code> client in order to ensure that the client is compatible with FIFO queues as mentioned in the version 2.4.2 documentation <a href="https://docs.awspring.io/spring-cloud-aws/docs/2.4.2/reference/html/index.html#fifo-queue-support" rel="nofollow noreferrer">here</a> . Defining a bean in my application in a <code>@Configuration</code> class similar to the documentation (as shown below) still results in the warning <code>AmazonSQSBufferedAsyncClient that Spring Cloud AWS uses by default to communicate with SQS is not compatible with FIFO queues. Consider registering non-buffered AmazonSQSAsyncClient bean.</code> Although, requests do seem to work I have not yet been able to determine if the correct <code>AmazonSQSAsync</code> client is being used. I'm looking for either a way to adjust my configuration that removes this warning (because my
  <code>AmazonSQSAsync</code> bean is being used) or way to confirm that the message is actually a red herring. The dependency I'm using is <code>spring-cloud-aws-messaging</code> version 2.4.2</p>
  <pre><code>@Configuration
  public class SQSConfig {
  
      @Bean
      public AmazonSQSAsync amazonSQS(@Value(&quot;${aws.region}&quot;) String awsRegion) {
          return AmazonSQSAsyncClientBuilder.standard()
                  .withCredentials(DefaultAWSCredentialsProviderChain.getInstance())
                  .withRegion(awsRegion)
                  .build();
      }
  }
  
  </code></pre>