Package Exports
- @goldstack/utils-aws-lambda
- @goldstack/utils-aws-lambda/dist/src/utilsAwsLambda.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@goldstack/utils-aws-lambda) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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: AWSCredentialIdentity;
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[] {}