From 2bfe12bf41a2640a359ab11ec5203e98fd717f84 Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Thu, 17 Aug 2023 20:44:21 +0200 Subject: [PATCH 1/4] README.md: add missing steps (cd / ppm install) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 62150c2..660d2b4 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ 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" ``` From 45b5cf9dface0f74e1f732e832e8fce593f2263a Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Thu, 17 Aug 2023 20:45:34 +0200 Subject: [PATCH 2/4] README.md: use default region for AWS Lambda command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 660d2b4..067d8f1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ $ 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" ``` 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. From a8afff4d400be2aa34bdd005b7af88abb3ea7e03 Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Thu, 17 Aug 2023 20:48:51 +0200 Subject: [PATCH 3/4] README.md: add compatible runtimes and architectures --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 067d8f1..a684703 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ $ 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" --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. From 5ff1c978a81c0260db1d01d4b9bf9f959e0dc7b2 Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Thu, 17 Aug 2023 20:50:07 +0200 Subject: [PATCH 4/4] README.md: reformat aws command for better readability --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a684703..45ca320 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,11 @@ $ 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" --zip-file "fileb://./dist/extension.zip" --compatible-runtimes nodejs16.x nodejs18.x --compatible-architectures x86_64 arm64 +$ 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.