Coder Social home page Coder Social logo

0005-taurus-sam's Introduction

Project Taurus : Lambda Layer Demo

Description

This is demonstration of a creating a Lambda layer with a custom Python library and adding the same to a Lambda function. The entire stack is created using AWS SAM (Serverless Application Model)

Installing

  • Clone the repository https://github.com/subhamay-cloudworks/0005-tarus-sam
  • Create a S3 bucket to store the Lambda code zip file.
  • Zip and Upload the following Python file to taurus/code/python in the S3 bucket.
    • taurus_code.py (taurus_code.zip)
  • From the Command line, zip the Python library code/python/my_lib.py including the python folder.
zip -r my_lib.zip python/my_lib.py
  • Upload the file my_lib.zip to taurus/code/python in the S3 bucket.
  • Execute the following SAM CLIcommands from the project directory to create the stack:
sam build
sam deploy --guided --capabilities "CAPABILITY_NAMED_IAM"
  • To delete the stack either delete from CloudFormation console or execute the following command:
aws cloudformation delete-stack --stack-name <Stack Name> --region <AWS Region Name>

Executing program

  • Execute the Lambda function either from AWS Lambda console or AWS CLI.

Help

Post message in my blog (https://blog.subhamay.com)

Authors

Contributors names and contact info

Subhamay Bhattacharyya - [email protected]

Version History

  • 0.1
    • Initial Release

License

This project is licensed under Subhamay Bhattacharyya. All Rights Reserved.

0005-taurus-sam's People

Contributors

subhamay-cloudworks avatar

Stargazers

 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.