Skip to content

Instantly share code, notes, and snippets.

@cbschuld
cbschuld / parameterStore.ts
Last active May 2, 2024 19:32
Obtain values from the AWS Parameter store with Typescript/node
import { SSM } from "aws-sdk";
const getParameterWorker = async (name:string, decrypt:boolean) : Promise<string> => {
const ssm = new SSM();
const result = await ssm
.getParameter({ Name: name, WithDecryption: decrypt })
.promise();
return result.Parameter.Value;
}