14

I am posting messages to a Amazon SQS queue. At start up, I am getting the following warning in my logs.

[http-nio-9090-exec-2][BasicProfileConfigLoader] The legacy profile format 
requires the 'profile ' prefix before the profile name. The latest code does 
not require such prefix, and will consider it as part of the profile name. 
Please remove the prefix if you are seeing this warning.

I am using the following version of Amazon SQS with Maven:

    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-sqs</artifactId>
        <version>1.11.125</version>
    </dependency>

How can I get rid of this warning?

Cale Sweeney
  • 1,014
  • 1
  • 15
  • 37

1 Answers1

29

This is most likely referring to your config file that is holding part of your aws credentials. Where this is on your machine will depend on what OS you are using, but for example on my Mac it is in \users\myname.aws\config

The old format was like this (as example):

[profile <profilename>]
region=us-east-1
output=json

and now should look like this instead:

[<profilename>]
region=us-east-1
output=json
E.J. Brennan
  • 45,870
  • 7
  • 88
  • 116
  • This solved the problem. By removing the word "profile" from my aws config file it removed the warning from my logs. On my Windows 10 machine, the aws config was located at C:\Users\MyName\.aws\config. – Cale Sweeney May 04 '17 at 21:54
  • 1
    @CaleSweeney yeah, I did the same as you said & it worked. – Sobhit Sharma Jul 05 '19 at 08:08
  • 5
    This worked for me as well, from my application point of view. However, from the AWS CLI commands aws s3 ls looks for the profile keyword. I am still on the AWS CLI 1.# could be the problem, just be advised. – Dylan Wright Jan 20 '20 at 20:02