diff options
author | Øyvind Grønnesby <oyving@verizonmedia.com> | 2021-03-08 12:46:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 12:46:57 +0100 |
commit | 023dacfb24664587a400a5b14ccc2d95287666c7 (patch) | |
tree | 06dffed6827f88a971bf7bfb5106a717a15cf529 /jdisc-cloud-aws | |
parent | 39b12a1b1b792d2b454ff1c590d0a9adc7b5ceb8 (diff) | |
parent | a49425678f505a19d5e08193e765d0bac2ccbb55 (diff) |
Merge pull request #16836 from vespa-engine/ogronnesby/sts-default-region
Use the DEFAULT_REGION when building STS client
Diffstat (limited to 'jdisc-cloud-aws')
-rw-r--r-- | jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java b/jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java index 4f657f78590..61e0051022d 100644 --- a/jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java +++ b/jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStore.java @@ -3,6 +3,7 @@ package com.yahoo.jdisc.cloud.aws; import com.amazonaws.auth.STSAssumeRoleSessionCredentialsProvider; +import com.amazonaws.regions.Regions; import com.amazonaws.services.securitytoken.AWSSecurityTokenService; import com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder; import com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement; @@ -43,6 +44,7 @@ public class AwsParameterStore extends AbstractComponent implements SecretStore for (var store : configuredStores) { AWSSecurityTokenService tokenService = AWSSecurityTokenServiceClientBuilder .standard() + .withRegion(Regions.DEFAULT_REGION) .withCredentials(credentialsProvider) .build(); |