4.10.0 • Published 8 months ago

@jcoreio/toolchain-aws-lambda v4.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@jcoreio/toolchain-aws-lambda

This project deploys an AWS Lambda Function from JS or TS source.

Features

  • Supports .env file, you can put AWS credentials, AWS_SDK_LOAD_CONFIG=1, AWS_REGION etc in .env if you like
  • Adds the tc deploy script, which deploys to AWS
  • Uses pack-lambda to stream the source to S3, supporting pnpm
  • If you use @jcoreio/toolchain-semantic-release, will deploy in CI

Conventions

The project must contain scripts/cloudFormationTemplate.js (or .ts if you're using @jcoreio/toolchain-typescript) that exports the following:

  • StackName (optional) - the name for the CloudFormation Stack (defaults to the Lambda FunctionName)
  • Template - the CloudFormation template
  • Parameters (optional) - the parameters for the template
  • Capabilities - the capabilities to use when deploying the stack
  • Tags (options) - the tags for the CloudFormation Stack

The Template must contain one AWS::Lambda::Function or AWS::Serverless::Function. It will provide defaults for the following properties, so they are optional:

  • Description: defaults to the description in package.json
  • CodeUri: defaults the Bucket to the AWS Account, and the Key to something based upon the name in package.json
  • Handler: defaults to the handler export in the main file in package.json
  • Runtime: defaults to nodejs20.x
  • FunctionName: defaults to something based upon the name in package.json
4.10.0

8 months ago

4.9.0

10 months ago

4.8.0

10 months ago

4.6.2

10 months ago

4.9.1

9 months ago

4.7.0

10 months ago

4.5.8

1 year ago

4.5.7

1 year ago

4.5.6

1 year ago

4.6.1

11 months ago

4.6.0

1 year ago

4.5.4

1 year ago

4.5.5

1 year ago

4.5.3

1 year ago

4.3.5

1 year ago

4.5.0

1 year ago

4.4.0

1 year ago

4.5.2

1 year ago

4.3.4

1 year ago

4.5.1

1 year ago

4.3.3

1 year ago

4.3.2

1 year ago

4.3.1

1 year ago

4.3.0

1 year ago