Skip to content

Commit

Permalink
修复一些AWS国内版差异性
Browse files Browse the repository at this point in the history
  • Loading branch information
yejingtao committed Jul 12, 2019
1 parent be3211b commit ea5e7bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public AmazonInstanceTypeCachingAgent(String region,
this.region = region;
this.accountCredentialsRepository = accountCredentialsRepository;
pricingHost = HttpHost.create("https://pricing.us-east-1.amazonaws.com");
pricingUri = URI.create("/offers/v1.0/aws/AmazonEC2/current/" + region + "/index.json");
//pricingUri = URI.create("/offers/v1.0/aws/AmazonEC2/current/" + region + "/index.json");
pricingUri = URI.create("/offers/v1.0/aws/AmazonEC2/current/us-east-1/index.json");
this.httpClient = httpClient;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public NetflixSTSAssumeRoleSessionCredentialsProvider(AWSCredentialsProvider lon
String roleSessionName,
String accountId) {
super(longLivedCredentialsProvider, roleArn, roleSessionName);
this.setSTSClientEndpoint("sts.cn-north-1.amazonaws.com.cn");
this.accountId = accountId;

/**
Expand Down

0 comments on commit ea5e7bc

Please sign in to comment.