Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit 9a46773

Browse files
authored
feat: enable use of AWS STS regional endpoints (#348)
This changes the default STS endpoint to use regional endpoints, to use the old endpoints one can set `AWS_STS_ENDPOINT_TYPE`.
1 parent de20a1b commit 9a46773

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/aws-config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ const localstack = process.env.LOCALSTACK || 0
99

1010
let secretsManagerConfig = {}
1111
let systemManagerConfig = {}
12-
let stsConfig = {}
12+
let stsConfig = {
13+
region: process.env.AWS_REGION || 'us-west-2',
14+
stsRegionalEndpoints: process.env.AWS_STS_ENDPOINT_TYPE || 'regional'
15+
}
1316

1417
if (localstack) {
1518
secretsManagerConfig = {

0 commit comments

Comments
 (0)