pwrdrvr / lambda-layers-js-demo

Demo of using AWS Lambda layers in VS Code with intellisense module resolution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Simple demonstration of using a jsconfig.json file in a lambda project that uses zip layers for node_modules, used to answer a StackOverflow Question.

This allows naked imports in the lambda/index.js to find the modules that are only installed in the layer/package.json project.

Example

For example, in index.js, without the jsconfig.json file the following import will have no type information, but with the jsconfig.json file it will have type information:

import axios from 'axios';

Screenshot

About

Demo of using AWS Lambda layers in VS Code with intellisense module resolution


Languages

Language:JavaScript 100.0%