From f9778f1116dc1925efa34a751fff4a52d1bb67ff Mon Sep 17 00:00:00 2001 From: perpil <97474956+perpil@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:15:38 -0800 Subject: [PATCH] Make STS multi-region STS has been multi-region for some time now. It's a best practice to use the regional endpoint: https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html Although the global region still works, for some opt-in regions, it's required to use the regional endpoint. --- aws4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws4.js b/aws4.js index b0cfb7c..6ea6655 100644 --- a/aws4.js +++ b/aws4.js @@ -108,7 +108,7 @@ RequestSigner.prototype.isSingleRegion = function() { // Special case for S3 and SimpleDB in us-east-1 if (['s3', 'sdb'].indexOf(this.service) >= 0 && this.region === 'us-east-1') return true - return ['cloudfront', 'ls', 'route53', 'iam', 'importexport', 'sts'] + return ['cloudfront', 'ls', 'route53', 'iam', 'importexport'] .indexOf(this.service) >= 0 }