Skip to content

Commit

Permalink
Merge pull request #2 from PetrHeinz/ph/improve-installation-steps
Browse files Browse the repository at this point in the history
README.md: improve installation steps
  • Loading branch information
randomf authored Aug 31, 2023
2 parents 77c604e + 5ff1c97 commit f7949b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f7949b9

Please sign in to comment.