IntelliJ - 无法从链中的任何提供商加载 AWS 凭证

bio*_*all 3 intellij-idea sbt

尝试将 SBT 项目导入 IntelliJ IDEA 15 CE 时,我遇到了这个奇怪的问题。

消息很简单Unable to load AWS Credentials from any provider in the chain

我已经尝试将AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY作为我的会话的环境变量,并且我确信我设置的值是正确的。我也试过创建一个~/.aws/credentials文件,但这些都没有解决这个错误。我认为这特别是一个 IntelliJ 错误,因为我可以在我的控制台中运行这个项目sbt就好了。

这是我的sbt.last.log. 这不是超级有用。

[error]     several problems occurred while resolving dependency: org.ow2#ow2;1.3 {}:
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     several problems occurred while resolving dependency: org.ow2.asm#asm-parent;4.1 {}:
[error]     several problems occurred while resolving dependency: org.ow2#ow2;1.3 {}:
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     several problems occurred while resolving dependency: org.ow2#ow2;1.3 {}:
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     several problems occurred while resolving dependency: org.ow2#ow2;1.3 {}:
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error]
[error]     Unable to load AWS credentials from any provider in the chain
[error]     Unable to load AWS credentials from any provider in the chain
[error] Total time: 596 s, completed Apr 5, 2016 10:59:14 AM
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

Bar*_*ara 6

我能够让它工作的唯一方法是使用该~/.aws/credential文件(我使用的是最新的 IntelliJ CE)。

在您的~/.aws/credential添加中:

[default]
aws_access_key_id={NO_QUOTES_KEY}
aws_secret_access_key={NO_QUOTES_SECRET_KEY}
Run Code Online (Sandbox Code Playgroud)

里面的配置文件名称[]必须是default。它不适用于任何其他配置文件名称。