@itgorillaz/configify 3.0.0-alpha.4 → 3.0.1
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/README.md +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -172,9 +172,20 @@ export class DatabaseConfiguration {
|
|
|
172
172
|
|
|
173
173
|
### Dealing with Secrets
|
|
174
174
|
|
|
175
|
-
Out of the box, this module can resolve AWS Secrets Manager and Parameter Store secrets.
|
|
175
|
+
Out of the box, this module can resolve AWS Secrets Manager and Parameter Store secrets.
|
|
176
|
+
|
|
177
|
+
For that, first is you need to install the required aws-sdk modules:
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
npm install @aws-sdk/client-ssm @aws-sdk/client-secrets-manager
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
then you can choose which strategies you would like to use to resolve AWS secrets:
|
|
176
184
|
|
|
177
185
|
```js
|
|
186
|
+
import { ConfigifyModule } from '@itgorillaz/configify';
|
|
187
|
+
import { AwsSecretsResolverFactory } from '@itgorillaz/configify/configuration/resolvers/aws';
|
|
188
|
+
|
|
178
189
|
// use default aws client instances
|
|
179
190
|
ConfigifyModule.forRootAsync({
|
|
180
191
|
secretsResolverStrategies: [
|