https://github.com/subhamay-cloudworks/0005-taurus-sls
Creating a Lambda Layer and adding the same to a Lambda function using Serverless Framework.
https://github.com/subhamay-cloudworks/0005-taurus-sls
aws-cloudformation aws-lambda aws-lambda-layer git-actions
Last synced: 9 months ago
JSON representation
Creating a Lambda Layer and adding the same to a Lambda function using Serverless Framework.
- Host: GitHub
- URL: https://github.com/subhamay-cloudworks/0005-taurus-sls
- Owner: subhamay-cloudworks
- Created: 2023-07-24T15:53:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T19:45:17.000Z (almost 3 years ago)
- Last Synced: 2025-08-12T14:52:05.568Z (10 months ago)
- Topics: aws-cloudformation, aws-lambda, aws-lambda-layer, git-actions
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 Serverless Framework (https://www.serverless.com/)
### Installing
* Clone the repository https://github.com/subhamay-cloudworks/0005-tarus-sls
* 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
```
* Execute the following Serverless commands from the project directory to create the stack:
```
sls deploy --verbose
```
* To delete the stack either delete from CloudFormation console or execute the following command:
```
sls remove --verbose
```
### 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 - [subhamay.aws@gmail.com](https://blog.subhamay.com)
## Version History
* 0.1
* Initial Release
## License