@allthings/cloud-toolkit
v1.5.3
Published
Standardizes the setup of aws, datadog and other things
Downloads
1,265
Readme
cloud-toolkit
Standardizes the setup of aws, datadog and other things
Available functions
parameter store
| function | parameters | description | |------------|-----------------------------------------|--------------------------------------------------------------------------------| | getSecret | parameterdefaultValue (optional) | Retrieves a single secret from parameter store by providing the path | | getSecrets | parametersdefaultValues (optional) | Retrieves multiple secrets from parameter store by providing an array of paths |
ses
| function | parameters | description | |----------|------------|------------------------------------------------| | sendMail | options | Sends an email via SES or provided SMTP config |
lambda
| function | parameters | description | |--------------|----------------------------|------------------------------------------------------| | invokeLambda | invocationTypepayload | Invokes set lambda with invocations type and payload |
dynamodb
| function | parameters | description | |-----------------|--------------------------------------|----------------------------------------------------------| | batchWriteItems | tableitems | Creates multiple item in a defined table | | deleteItem | tablekeyoptions (optional) | Deletes database item from defined table by given key | | getItem | tablekeyoptions (optional) | Returns item from Database by defined table and key | | putItem | tablekey | Creates one item in defined table | | queryTable | tableoptions (optional) | Returns result items of query | | scanTable | tableoptions (optional) | Returns result items of scan | | updateItem | tablekeyoptions (optional) | Updates item in database by provided table and given key |
sqs
| function | parameters | description | |-----------------|---------------------------------------------------------------------------------|----------------------------------------------------------| | deleteQueueItem | queueUrlreceiptHandle | Deletes item from queue | | getQueueItems | queueUrlmaxNumberOfMessages (optional) | Retrieves items from queue | | getQueueUrl | queueName | Returns queue url which is needed for all other requests | | sendMessage | queueUrlmessagemessageAttributes(optional)messageDelay(optional) | Creates an item in the queue |
logger
A winston instance will be created with default log levels https://github.com/winstonjs/winston?tab=readme-ov-file#logging