UNPKG

envilder

Version:

A CLI that securely centralizes your environment variables from AWS SSM as a single source of truth

19 lines 1.02 kB
import type { IEnvFileManager } from '../domain/ports/IEnvFileManager'; import type { ISecretProvider } from '../domain/ports/ISecretProvider'; export declare class Envilder { private keyVault; private envFileManager; constructor(keyVault: ISecretProvider, envFileManager: IEnvFileManager); /** * Orchestrates the process of fetching environment variable values from a key vault and writing them to a local environment file. * * Loads a parameter mapping from a JSON file, retrieves existing environment variables, fetches updated values from the key vault, merges them, and writes the result to the specified environment file. * * @param mapPath - Path to the JSON file mapping environment variable names to key vault parameter names. * @param envFilePath - Path to the local environment file to read and update. */ run(mapPath: string, envFilePath: string): Promise<void>; private envild; private processSecret; } //# sourceMappingURL=EnvilderHandler.d.ts.map