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

标签 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作为 session 的环境变量,我确信我设置的值是正确的。我也试过创建一个 ~/.aws/credentials文件,但这些都没有解决此错误。我认为这特别是一个 IntelliJ 错误,因为我可以使用 sbt 在我的控制台中运行这个项目正好。

这是我的片段 sbt.last.log .这不是 super 有用。

[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

我该如何解决?

最佳答案

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

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

[default]
aws_access_key_id={NO_QUOTES_KEY}
aws_secret_access_key={NO_QUOTES_SECRET_KEY}
[]里面的配置文件名称必须是 默认 .它不适用于任何其他配置文件名称。

关于intellij-idea - IntelliJ - 无法从链中的任何提供商加载 AWS 凭证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36433929/

相关文章:

android-studio - 如何在整个项目中全局更改 xml 元素的名称

java - 这个符号在 IntelliJ 中意味着什么? Java 类名上的照明符号

scala - 在运行Scala/SBT测试套件时设置环境变量

java - 从 sbt 0.10.1 运行 JavaFx 2.0 beta 应用程序时抛出 InterruptedException

sbt - 如何在 sbt 0.12 中使任务依赖于另一个任务?

scala - Scala 中的 '???' 是什么?

java - Appium : how to check device name using automation test cases in java

intellij-idea - 为什么在 IntelliJ 中运行 TestCase 时 JUnit Jupiter 和 JUnit Vintage 分开了?

java - sbt 程序集 fatjar 中的spectjweaver/javaagent

sbt - 将托管库复制到 lib