我正在尝试使用Jenkins作为在aws上托管的构建服务器。为此,我有一个与Jenkins一起运行的EC2实例。我安装了AWS EC2插件但是当我尝试配置它时(通过转到jenkins - >配置系统 - >添加云 - > aws)我收到以下错误: 堆栈跟踪
com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain
at com.amazonaws.auth.AWSCredentialsProviderChain.getCredentials(AWSCredentialsProviderChain.java:131)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.getCredentialsFromContext(AmazonHttpClient.java:
我甚至无法填写AWS凭据。 有人对此有什么想法吗?
答案 0 :(得分:0)
有些人在配置AWS时没有勾选“IAM角色”复选框,从而解决了这个错误。
请参阅open jenkins问题:S3 plugin - Unable to load AWS credentials from any provider in the chain
另请参阅stackoverflow问题:Unable to load AWS credentials from any provider in the chain - Jenkins & AWS codepipeline