Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,33 @@ This module will:
* --encrypt optional flag to encrypt the parameters
- exportAllParams: export all parameters from AWS Parameter Store to hierarchical folders
* --folder folder to save parameters to
* --env optional aws application environment
* --env optional aws application
- getSharedConfigByService: get params by service from Config Table.
* --env aws application environment
* --service aws application service
* --outfile optional flag to save parameters with provided file name, file will be saved as -> "fileName"-"service"-config.json
- putSharedConfigFromFile: save params from json file into Config Table.
* --infile json file to read the params from

eg:

`sharedConfig.json` (key represents the name of the parameter)
```json
{
"USER_TABLE": {
"value": "user_table_name"
}
}
```
* --env aws application environment
* --service aws application service

### NOTE:
When `configWrapper.awsManager.getSharedConfigByService()` method is called in a lambda function. Lambda function should have `dynamodb:Query` permission for the Config_Table including Config_Table/index/*

When `configWrapper.awsManager.setSharedConfigByService()` method is called in a lambda function. Lambda function should have `dynamodb:BatchWriteItem` permission for the Config_Table

---
#### Tests
`npm test`

Expand Down
Loading