Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storing config in dynamodb table poc #12

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
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