Skip to content
Permalink
Browse files
JENKINS-26414 - Add support for new C4 instance types
* fixing AmazonServiceException: AWS was not able to validate the provided access credentials
  • Loading branch information
cbek committed Mar 20, 2015
1 parent 42364b4 commit d34b4ae093fd65bd880f22e222474c961443d642
Showing 1 changed file with 1 addition and 0 deletions.
@@ -474,6 +474,7 @@ public synchronized AmazonEC2 connect() throws AmazonClientException {
public synchronized static AmazonEC2 connect(AWSCredentialsProvider credentialsProvider, URL endpoint) {
awsCredentialsProvider = credentialsProvider;
ClientConfiguration config = new ClientConfiguration();
config.setSignerOverride("QueryStringSignerType");
ProxyConfiguration proxyConfig = Jenkins.getInstance().proxy;
Proxy proxy = proxyConfig == null ? Proxy.NO_PROXY : proxyConfig.createProxy(endpoint.getHost());
if (! proxy.equals(Proxy.NO_PROXY) && proxy.address() instanceof InetSocketAddress) {

0 comments on commit d34b4ae

Please sign in to comment.