Amazon SQS传统配置文件格式警告 [英] Amazon SQS Legacy Profile Format Warning

查看:86
本文介绍了Amazon SQS传统配置文件格式警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将消息发布到Amazon SQS队列.在启动时,我在日志中收到以下警告.

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.

我在Maven中使用以下版本的Amazon SQS:

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>

如何摆脱此警告?

推荐答案

这很可能是指保存了部分AWS凭证的配置文件.这在您的计算机上的位置取决于您使用的操作系统,但是例如在我的Mac上,它位于\ users \ myname.aws \ config

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

这篇关于Amazon SQS传统配置文件格式警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆