@kmhgmbh/aws-wrapper
v1.5.1
Published
Wraps often used AWS SDK functionality for convenience.
Downloads
85
Keywords
Readme
README
This package provides convenience functions for common AWS SDK tasks.
Installation
npm i @kmhgmbh/aws-wrapper
Examples
Retrieving configuration from parameter store
Retrieving all parameters under a given path as a map:
import { getParameters } from '@kmhgmbh/aws-wrapper';
async function withParametersFromAWS() {
const configuration = await getParameters('/Config/Dev/MyService');
// …
}
Retrieving a single parameter by name/full path:
import { getParameter } from '@kmhgmbh/aws-wrapper';
async function withParameterFromAWS() {
const configuration = await getParameter('my.parameter.name');
// …
}