Giter Site home page Giter Site logo

maginawin / aws-lambda-layers-aws-sam-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/aws-lambda-layers-aws-sam-examples

0.0 1.0 0.0 21 KB

This example application shows how to build AWS Lambda Layers using Node.js and the AWS Serverless Application Model. Questions? @jbesw.

Home Page: https://aws.amazon.com/blogs/compute/author/jbeswick/

License: MIT No Attribution

aws-lambda-layers-aws-sam-examples's Introduction

Creating AWS Lambda Layers using Node.js and AWS SAM

This example application shows how to build AWS Lambda Layers using Node.js and the AWS Serverless Application Model.

To learn more about how this sample works, see AWS Compute Blog post: https://aws.amazon.com/blogs/compute/using-lambda-layers-to-simplify-your-development-process/

Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the AWS Pricing page for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.

.
├── README.MD                   <-- This instructions file
├── aws-sdk-layer               <-- Source code for the Vue.js
├── sharp-layer                 <-- Source code for the serverless backend

Requirements

Installation Instructions

  1. Create an AWS account if you do not already have one and login.

  2. Clone the repo onto your local development machine using git clone.

  3. Change into the repo's directory.

  4. Run:

npm install
mkdir ./layer/nodejs –p
mv ./node_modules ./layer/nodejs
  1. Next, deploy the SAM template to create the layer:
sam deploy --guided

When prompted for parameters, enter:

  • Stack Name: aws-sdk-layer
  • AWS Region: your preferred AWS Region (e.g. us-east-1)
  • Accept all other defaults.
  1. After the deployment completes, the new Lambda layer is available to use. Run this command to see the available layers:
aws lambda list-layers

Next steps

The AWS Compute Blog post at the top of this README file contains additional information about the how to use Lambda layers.

If you have any questions, please raise an issue in the GitHub repo.

==============================================

Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0

aws-lambda-layers-aws-sam-examples's People

Contributors

amazon-auto avatar jbesw avatar jrnewton avatar

Watchers

 avatar

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.