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

Commit 4584a09

Browse files
authored
fix(config): remove default aws region (#54)
1 parent eeb7acf commit 4584a09

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

config/environment.js

-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ if (environment === 'development') {
1616
require('dotenv').config()
1717
}
1818

19-
const awsRegion = process.env.AWS_REGION || 'us-west-2'
2019
const eventsIntervalMilliseconds = process.env.EVENTS_INTERVAL_MILLISECONDS
2120
? Number(process.env.EVENTS_INTERVAL_MILLISECONDS) : 60000
2221
const pollerIntervalMilliseconds = process.env.POLLER_INTERVAL_MILLISECONDS
2322
? Number(process.env.POLLER_INTERVAL_MILLISECONDS) : 10000
2423

2524
module.exports = {
26-
awsRegion,
2725
environment,
2826
eventsIntervalMilliseconds,
2927
pollerIntervalMilliseconds

config/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const customResourceManager = new CustomResourceManager({
2929
logger
3030
})
3131

32-
const secretsManagerClient = new AWS.SecretsManager({ region: envConfig.awsRegion })
32+
const secretsManagerClient = new AWS.SecretsManager()
3333
const secretsManagerBackend = new SecretsManagerBackend({ client: secretsManagerClient, logger })
34-
const systemManagerClient = new AWS.SSM({ region: envConfig.awsRegion })
34+
const systemManagerClient = new AWS.SSM()
3535
const systemManagerBackend = new SystemManagerBackend({ client: systemManagerClient, logger })
3636
const backends = {
3737
secretsManager: secretsManagerBackend,

0 commit comments

Comments
 (0)