🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@nx/aws-lambda

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx/aws-lambda

## Setup

16.0.0-beta.0
npm
Version published
Weekly downloads
1.9K
-15.34%
Maintainers
4
Weekly downloads
 
Created
Source

@nrwl/aws-lambda

Setup

Create a new Nx worksapce if you don't already have one.

npx create-nx-workspace@latest aws-lambda-demo --preset=@nrwl/aws-lambda:preset

Now, you can go into the aws-lambda-demo folder and start development.

Note: You must have SAM installed and esbuild available in your PATH before you start building / deploying your functions.

You can do this by running

npm install -g esbuild

Now to run your functions locally you can

cd aws-lambda-demo
npx nx run dev

You can also run lint, test and deploy for the project.

npx nx run lint
npx nx run test
npx nx run deploy

For deploy this runs

sam deploy --guided

Note: Change aws-lambda-demo to any project name you want.

Existing workspaces

You can add aws-lambda to any existing Nx workspace.

First, install the plugin:

npm install -DE @nrwl/aws-lambda@latest

Create a new Aws Lambda App

npx nx g @nrwl/aws-lambda:serverless

FAQs

Package last updated on 02 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts