Coder Social home page Coder Social logo

nordicsemiconductor / cloud-aws-package-layered-lambdas-js Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 0.0 9.29 MB

Packages lambda functions and layers for AWS lambda

Home Page: https://github.com/NordicSemiconductor/cloud-aws-package-layered-lambdas-js#readme

License: Other

JavaScript 0.50% TypeScript 99.02% Shell 0.47%
aws serverless typescript lambda nrf-asset-tracker esm

cloud-aws-package-layered-lambdas-js's Introduction

Package Layered Lambdas npm version

GitHub Actions semantic-release Renovate Mergify Status Commitizen friendly

Packages lambdas with intra-project dependencies using Webpack and a base layer with the dependencies defined in package.json.

Checksums are created for dependencies per lambda so that rebuild only happens when files are changed.

Packaged lambdas are published to S3 so they can be picked up from CloudFormation and shared also cached for other developers.

Installation

npm i --save-dev --save-exact @nordicsemiconductor/package-layered-lambdas

Usage

More background information on this project and usage instructions can be found in this blog post.

Also, have a look at the test stack, which uses this library to publish a lambda and especially the cdk/prepareResources.ts which shows how to package a lambda and a layer.

Use with Yarn

The lockfile name and the command used to install the dependencies of packBaseLayer are configureable. For use with Yarn use these settings:

packBaseLayer({
  lockFileName: "yarn.lock",
  installCommand: [
    "yarn",
    "install",
    "--frozen-lockfile",
    "--ignore-scripts",
    "--production",
  ],
});

cloud-aws-package-layered-lambdas-js's People

Contributors

coderbyheart avatar dependabot[bot] avatar greenkeeper[bot] avatar renovate-bot avatar renovate[bot] avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cloud-aws-package-layered-lambdas-js's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/add-to-project.yaml
.github/workflows/code-style.yaml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/cache v3
  • peter-evans/create-pull-request v4
.github/workflows/sync-issue-labels.yaml
  • actions/checkout v3
.github/workflows/test-and-release.yaml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/cache v3
  • actions/cache v3
  • actions/upload-artifact v3
.github/workflows/update-repo-info.yaml
  • actions/checkout v3
npm
package.json
  • @aws-sdk/client-cloudformation 3.294.0
  • @aws-sdk/client-lambda 3.294.0
  • @aws-sdk/client-s3 3.294.0
  • ansi-escapes 4.3.2
  • aws-lambda 1.0.7
  • chalk 4.1.2
  • dependency-tree 9.0.0
  • glob 8.1.0
  • table 6.8.1
  • tmp 0.2.1
  • ts-loader 9.4.2
  • webpack 5.76.2
  • yazl 2.5.1
  • @nordicsemiconductor/asset-tracker-cloud-code-style 12.0.5
  • @nordicsemiconductor/cloudformation-helpers 8.0.0
  • @types/aws-lambda 8.10.114
  • @types/dependency-tree 8.1.1
  • @types/glob 8.1.0
  • @types/node 18.15.3
  • @types/table 6.3.2
  • @types/terminal-kit 2.5.1
  • @types/tmp 0.2.3
  • @types/webpack 5.28.0
  • @types/yazl 2.4.2
  • aws-cdk-lib 2.69.0
  • cdk 2.69.0
  • node >=18
  • npm >=9

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.