with the cli create service parameters config-wrapper putSharedConfigFromFile --infile sharedConfig.json --env develop --service resolvers
with the cli get service parameters config-wrapper getSharedConfigByService --env develop --service resolvers
—-
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/*
https://github.com/opentorc/torc-serverless/issues/557
This PR is a POC for storing config parameters in Config table - related PR https://github.com/opentorc/platform-api/pull/1133 - added two methods to the cli to be able to test it.
Create Config table mentioned in the related PR 1.a Creat SSM variable
DYNAMODB_CONFIG_TABLE
undercommon
pathinstall
config-wrapper
package locallynpm i path../.../config-wrapper
create
sharedConfig.json
egwith the cli create service parameters
config-wrapper putSharedConfigFromFile --infile sharedConfig.json --env develop --service resolvers
with the cli get service parameters
config-wrapper getSharedConfigByService --env develop --service resolvers
—-
NOTE: When
configWrapper.awsManager.getSharedConfigByService()
method is called in a lambda function. Lambda function should havedynamodb:Query
permission for the Config_Table including Config_Table/index/*