You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Build new Lambda extension (#1383)
* Use new GitHub action for creating Lambda layer zip.
* Use new GitHub action for creating zip.
* Replace original DSN host/port with localhost:3000 (#1414)
* Added script for locally building/release Lambda layer
* Added script to attach layer to function
Co-authored-by: Neel Shah <neel.shah@sentry.io>
All the general terms of the [CONTRIBUTING.md](CONTRIBUTING.md) apply.
4
+
5
+
## Development environment
6
+
7
+
You need to have a AWS account and AWS CLI installed and setup.
8
+
9
+
We put together two helper functions that can help you with development:
10
+
11
+
-`./scripts/aws-deploy-local-layer.sh`
12
+
13
+
This script [scripts/aws-deploy-local-layer.sh](scripts/aws-deploy-local-layer.sh) will take the code you have checked out locally, create a Lambda layer out of it and deploy it to the `eu-central-1` region of your configured AWS account using `aws` CLI.
14
+
15
+
The Lambda layer will have the name `SentryPythonServerlessSDK-local-dev`
You can use this script [scripts/aws-attach-layer-to-lambda-function.sh](scripts/aws-attach-layer-to-lambda-function.sh) to attach the Lambda layer you just deployed (using the first script) onto one of your existing Lambda functions. You will have to give the name of the Lambda function to attach onto as an argument. (See the script for details.)
20
+
21
+
With this two helper scripts it should be easy to rapidly iterate your development on the Lambda layer.
0 commit comments