Skip to content

Commit

Permalink
feat: enable use of AWS STS regional endpoints (external-secrets#348)
Browse files Browse the repository at this point in the history
This changes the default STS endpoint to use regional endpoints, to use the old endpoints one can set `AWS_STS_ENDPOINT_TYPE`.
  • Loading branch information
Aneurysm9 committed Apr 26, 2020
1 parent de20a1b commit 9a46773
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/aws-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const localstack = process.env.LOCALSTACK || 0

let secretsManagerConfig = {}
let systemManagerConfig = {}
let stsConfig = {}
let stsConfig = {
region: process.env.AWS_REGION || 'us-west-2',
stsRegionalEndpoints: process.env.AWS_STS_ENDPOINT_TYPE || 'regional'
}

if (localstack) {
secretsManagerConfig = {
Expand Down

0 comments on commit 9a46773

Please sign in to comment.