From 1a0edb48f5252aa9d410d9f03feeb64720fe5d39 Mon Sep 17 00:00:00 2001 From: Sergei Turukin Date: Thu, 9 Apr 2026 18:05:25 -0700 Subject: [PATCH] docs: point pre-built Lambda install at GitHub releases Replace the deprecated s3://embucket-releases bucket references in the README and AWS Lambda deploy guide with `gh release download` against the GitHub release assets published by the lambda-release workflow. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 4 ++-- docs/src/content/docs/deploy/aws-lambda.mdx | 16 ++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6d2316c1..f6927883 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,10 @@ See the full [Quick Start guide](https://docs.embucket.com/getting-started/quick ## Deploy -Deploy Embucket to AWS Lambda with the pre-built zip: +Deploy Embucket to AWS Lambda with the pre-built zip from the latest [GitHub release](https://github.com/Embucket/embucket/releases/latest): ```bash -aws s3 cp s3://embucket-releases/lambda/embucket-lambda-latest.zip . +gh release download --repo Embucket/embucket --pattern 'embucket-lambda-*-arm64.zip' ``` See the [AWS Lambda deployment guide](https://docs.embucket.com/deploy/aws-lambda/) for configuration and production setup. diff --git a/docs/src/content/docs/deploy/aws-lambda.mdx b/docs/src/content/docs/deploy/aws-lambda.mdx index 43ac25f6..7ef0e588 100644 --- a/docs/src/content/docs/deploy/aws-lambda.mdx +++ b/docs/src/content/docs/deploy/aws-lambda.mdx @@ -109,17 +109,21 @@ Save the bucket name, region, and ARN. You need these values in the next step. - Download the pre-built Lambda zip from S3: + Download the pre-built Lambda zip from the latest [GitHub release](https://github.com/Embucket/embucket/releases/latest). Each release publishes both `arm64` and `x86_64` assets named `embucket-lambda--.zip`. + + Use the [GitHub CLI](https://cli.github.com/) to pull the latest asset for your target architecture: ```bash - aws s3 cp s3://embucket-releases/lambda/embucket-lambda-latest.zip . + gh release download --repo Embucket/embucket --pattern 'embucket-lambda-*-arm64.zip' ``` + For `x86_64`, swap the pattern to `'embucket-lambda-*-x86_64.zip'`. To grab a specific version, pass `--tag v1.2.3`. + - Create the Lambda function: + Create the Lambda function, pointing `--zip-file` at the downloaded asset: ```bash aws lambda create-function \ @@ -127,21 +131,21 @@ Save the bucket name, region, and ARN. You need these values in the next step. --runtime provided.al2023 \ --architectures arm64 \ --handler bootstrap \ - --zip-file fileb://embucket-lambda-latest.zip \ + --zip-file fileb://embucket-lambda--arm64.zip \ --role arn:aws:iam::123456789012:role/embucket-lambda-role \ --memory-size 3008 \ --timeout 30 \ --environment "Variables={METASTORE_CONFIG=config/metastore.yaml,LOG_FORMAT=json,TRACING_LEVEL=debug,RUST_LOG=info}" ``` - Replace the role ARN with your own execution role. + Replace the role ARN with your own execution role and `` with the tag you downloaded. To update an existing function: ```bash aws lambda update-function-code \ --function-name embucket-lambda \ - --zip-file fileb://embucket-lambda-latest.zip + --zip-file fileb://embucket-lambda--arm64.zip ```