UNPKG

aws-parameter-dotenv

Version:

Tiny library to Load environment variables directly from AWS Parameter Store

29 lines (28 loc) 623 B
/** * Configuration Option */ export interface ConfigOptions { project: string; environment: string; region: string; } export declare type AwsParameterDotEnv = (config: ConfigOptions) => { addParameter: (options: AddParameterOptions) => void; load: () => void; }; interface AddParameterOptions { /** * Parameter name */ name: string; /** * Parameter Value */ value: string; /** * Default true. If secure the parameter will be stored as a Secure String. */ secure?: boolean; } declare const awsDotEnv: AwsParameterDotEnv; export default awsDotEnv;