This is a versatile AWS Lambda Layer collection.
It contains libraries that are likely to be used frequently with the AWS Lambda Layer.
- Python
- Slack notification
- zip
- awscli
- Pytest
-
zip archive
zip -r hoge-layer.zip python
-
Create a Layer
aws lambda publish-layer-version \ --layer-name hogehoge \ --zip-file fileb://layer.zip \ --compatible-runtimes python3.8
-
Adds a Layer to the Lambda Function and invokes the process
import slack_notification ... slack_notification.notify(WEBHOOK_URL, 'message')
git clone https://github.com/sinokuma/lambda-layer.git
Before you run Pytest, please set 'SLACK_WEBHOOK_URL'
to the URL of the notification destination.
See https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html