Navigation Menu

Skip to content

Commit

Permalink
JENKINS-26414 - Add support for new C4 instance types
Browse files Browse the repository at this point in the history
* fixing AmazonServiceException: AWS was not able to validate the provided access credentials
  • Loading branch information
cbek committed Mar 20, 2015
1 parent 42364b4 commit d34b4ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/hudson/plugins/ec2/EC2Cloud.java
Expand Up @@ -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) {
Expand Down

0 comments on commit d34b4ae

Please sign in to comment.