尝试将 SBT 项目导入 IntelliJ IDEA 15 CE 时,我遇到了这个奇怪的问题。
消息很简单 Unable to load AWS Credentials from any provider in the chain
.
我试过暴露 AWS_ACCESS_KEY_ID
和 AWS_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/