/lambda-layers-js-demo

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

Primary LanguageJavaScript

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