diff --git a/README.md b/README.md index 62150c2..45ca320 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,14 @@ In order to use the extension you must first build and deploy it into your AWS i ```shell $ git clone git@github.com: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.