chrome-aws-lambda-layer icon indicating copy to clipboard operation
chrome-aws-lambda-layer copied to clipboard

feat/improve layers

Open iwaduarte opened this issue 1 month ago • 1 comments

Fix deployment pipeline and add arm64 architecture support

Summary

Fixed three critical issues preventing layer deployments and README updates:

  1. Removed workflow-blocking exit code that prevented README updates
  2. Added arm64 (Graviton2) architecture support alongside x64
  3. Updated README structure to reflect dual-architecture deployment

Issues Fixed

  • Exit code 78 blocking README updates: Changed to exit 0 with skip flag, allowing README workflow to trigger on success
  • Version stuck at v50: README workflow was never running due to failed workflow_run dependency
  • No arm64 support: Added arm64 layer deployment for all 16 AWS regions

Changes Made

.github/workflows/layers_dispatch.yaml

  • Replace exit 78 with exit 0 + skip output flag
  • Download both x64 and arm64 chromium zips from Sparticuz/chromium releases
  • Publish TWO layer versions per region: chrome-aws-lambda-x64 and chrome-aws-lambda-arm64
  • Add conditional execution with if: steps.latest_release.outputs.skip == 'false'

.github/workflows/update_readme.yaml

  • Query layer versions for both x64 and arm64 architectures
  • Update sed commands to handle new layer naming pattern

readme.md

  • Update version from v131 to v141 (will be auto-updated by workflow)
  • Split "Available regions" into separate x64 and arm64 sections
  • Update Getting Started with architecture-specific ARN examples
  • Update Lambda settings to mention both architectures

Breaking Changes ⚠️

IMPORTANT: Layer names have changed:

  • Old: chrome-aws-lambda
  • New: chrome-aws-lambda-x64 and chrome-aws-lambda-arm64

Existing users will need to update their Lambda functions to use the new layer ARNs. The old chrome-aws-lambda layer will no longer receive updates.

Testing

  • Workflow syntax validated
  • URL patterns confirmed against Sparticuz/chromium v141.0.0 release
  • README format tested with sed patterns

Next Deployment

On next workflow run (daily cron or push to master):

  • Will publish 32 new layer versions (2 architectures × 16 regions)
  • README will auto-update with correct version numbers

iwaduarte avatar Nov 05 '25 07:11 iwaduarte