@allthings/cloud-toolkit
v4.0.0
Published
Standardizes the setup of aws, Datadog and other things
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
Releasing pre-release versions
This project uses semantic-release with support for pre-release channels via dedicated branches.
| Branch | npm dist-tag | Example version |
| ------- | ------------ | --------------- |
| next | next | 1.2.0-next.1 |
| beta | beta | 1.2.0-beta.1 |
| alpha | alpha | 1.2.0-alpha.1 |
How to publish a pre-release
Create or check out the target branch from the commit you want to release:
git checkout -b beta # or alpha / nextPush the branch to trigger the CI pipeline:
git push --force origin HEAD:beta # or alpha / nextThe pipeline will automatically run
semantic-release, which detects the branch name, bumps the version with the appropriate pre-release tag, and publishes it to npm under the matching dist-tag. Check Actions page for the release logs.Install the pre-release in another project:
npm install @allthings/cloud-toolkit@beta # or @alpha / @nextor use exact release (check versions on npm):
npm install @allthings/[email protected]Promote to stable – once the pre-release is validated, create a PR form your target branch.
Note: commits on pre-release or target branches must still follow the Conventional Commits specification so that semantic-release can determine the correct version bump.
