-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from PetrHeinz/ph/improve-installation-steps
README.md: improve installation steps
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,14 @@ In order to use the extension you must first build and deploy it into your AWS i | |
|
||
```shell | ||
$ git clone [email protected]:stockstory/logtail-lambda-extension.git | ||
$ cd logtail-lambda-extension | ||
$ pnpm install | ||
$ pnpm run build | ||
$ aws lambda publish-layer-version --layer-name "logtail-lambda-extension" --region us-west-2 --zip-file "fileb://./dist/extension.zip" | ||
$ aws lambda publish-layer-version \ | ||
--layer-name "logtail-lambda-extension" \ | ||
--zip-file "fileb://./dist/extension.zip" \ | ||
--compatible-runtimes nodejs16.x nodejs18.x \ | ||
--compatible-architectures x86_64 arm64 | ||
``` | ||
|
||
Once deployed set the `LOGTAIL_TOKEN` environment variable on your Lambda to your HTTP API source from Logtail, and [add the layer](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html) to your Lambda function. | ||
|