Neanderthal Pudding Mix

    @goldstack/utils-aws-lambda
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.12 • Public • Published

    Goldstack AWS Lambda Tools

    This library provides a simple wrapper around the AWS CLI to deploy Lambdas and define Lambda infrastructure.

    deployFunction

    This function will deploy an AWS lambda. Note this function will either need Docker to be available locally or the AWS cli.

    interface DeployFunctionParams {
      lambdaPackageDir: string;
      targetArchiveName?: string;
      awsCredentials: AWS.Credentials;
      region: string;
      functionName: string;
    }
    
    function async deployFunction(
      params: DeployFunctionParams
    ): Promise<any> {}

    readLambdaConfig

    This function will generate a configuration for AWS HTTP API Gateway based on .ts files in a folder. For more information, see Goldstack Documentation - Defining Routes

    export interface LambdaConfig {
      name: string;
      type: RouteType;
      absoluteFilePath: string;
      relativeFilePath: string;
      path: string;
      route: string;
    }
    
    function readLambdaConfig(dir: string): LambdaConfig[] {}

    Install

    npm i @goldstack/utils-aws-lambda

    DownloadsWeekly Downloads

    76

    Version

    0.3.12

    License

    MIT

    Unpacked Size

    42.2 kB

    Total Files

    42

    Last publish

    Collaborators

    • mxro