@wavo-cloud/aws-secrets-manager-helper
v0.4.0
Published
Wavo Cloud Infallible AWS Secrets Manager Helper
Readme
wavo-cloud.aws-secrets-manager-helper
Wavo Cloud Infallible AWS Secrets Manager Helper
How To Use
To import it use
const {
getClientSecretIds,
getClientSecret,
getAllClientSecrets,
getSecretValue,
} = require('@wavo-cloud/aws-secrets-manager-helper')To get a specific secret value call getSecretValue(SECRET_ID)
To get a list of clients and their respective CLIENT_IDs and SECRET_IDs call getClientSecretIds()
To get a specific client secret using their CLIENT_ID call getClientSecret(CLIENT_ID)
To get all client secrets call getAllClientSecrets()
Important Commands
Building the Dockerfile image
$ yarn image-buildPrettify the Source
$ yarn prettifyStart the Microservice
When using this option, node is passed the --inspect flag so you can inspect your code with the debugger of your choice. If your microservice is a worker or if you need it to block and wait for the debugger to connect use the "debug mode" instead.
$ yarn startDockerized version (using docker-compose):
$ yarn docker-startStart the Microservice in Debug Mode
Important: when you run the microservice in debug mode, it is going to be started with node's --inspect-brk flag.
This implies that the microservice will block and wait for a debugger to connect to port 5858 and resume code execution.
$ yarn debugDockerized version (using docker-compose):
$ yarn docker-debugRunning the Tests
Important: when you run the microservice in debug mode, it is going to be started with node's --inspect-brk flag.
This implies that the microservice will block and wait for a debugger to connect to port 5858 and resume code execution.
$ yarn testDockerized version (using docker-compose):
$ yarn docker-test