ac-awssecrets 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/index.js +5 -3
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
<a name="2.0.2"></a>
|
|
2
|
+
|
|
3
|
+
## [2.0.2](https://github.com/admiralcloud/ac-awssecrets/compare/v2.0.1..v2.0.2) (2023-05-14 14:26:17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fix
|
|
7
|
+
|
|
8
|
+
* **App:** Improved speed using only 2 credential providers | MP | [26c4c6ac703b9125fb72fcc14d4495f1bc4ac378](https://github.com/admiralcloud/ac-awssecrets/commit/26c4c6ac703b9125fb72fcc14d4495f1bc4ac378)
|
|
9
|
+
Use only 2 credential providers as defined in ac-aws-customcredentialprovider. This way starting apps is much faster
|
|
10
|
+
Related issues: [/issues#undefined](https://github.com//issues/undefined)
|
|
1
11
|
<a name="2.0.1"></a>
|
|
2
12
|
|
|
3
13
|
## [2.0.1](https://github.com/admiralcloud/ac-awssecrets/compare/v2.0.0..v2.0.1) (2023-05-12 16:00:19)
|
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const { SecretsManagerClient, GetSecretValueCommand } = require(
|
|
1
|
+
const { SecretsManagerClient, GetSecretValueCommand } = require('@aws-sdk/client-secrets-manager')
|
|
2
|
+
const customCredentialProvider = require('ac-aws-customcredentialprovider')
|
|
2
3
|
|
|
3
|
-
const testConfig = require('./test/config')
|
|
4
|
+
const testConfig = require('./test/config');
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Replaces configuration variables with secrets
|
|
@@ -35,7 +36,8 @@ const awsSecrets = () => {
|
|
|
35
36
|
const environment = config?.environment || 'development'
|
|
36
37
|
|
|
37
38
|
const awsConfig = {
|
|
38
|
-
region: 'eu-central-1'
|
|
39
|
+
region: 'eu-central-1',
|
|
40
|
+
credentials: customCredentialProvider({ localDevelopment: config.localDevelopment, debug: true })
|
|
39
41
|
}
|
|
40
42
|
const client = new SecretsManagerClient(awsConfig)
|
|
41
43
|
|
package/package.json
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
"author": "Mark Poepping (https://www.admiralcloud.com)",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "admiralcloud/ac-awssecrets",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.2",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@aws-sdk/client-secrets-manager": "^3.332.0"
|
|
8
|
+
"@aws-sdk/client-secrets-manager": "^3.332.0",
|
|
9
|
+
"ac-aws-customcredentialprovider": "^0.1.0"
|
|
9
10
|
},
|
|
10
11
|
"devDependencies": {
|
|
11
12
|
"ac-semantic-release": "^0.4.1",
|