AWS SAM CLI version 1.159.0 now supports BuildKit for building Lambda functions packaged as container images. This enables multi-stage builds for smaller images, improved caching to reduce rebuild times, better parallelization, cross-architecture builds (x86_64 and arm64/Graviton2), and Docker secrets support to keep sensitive data out of image layers. The feature works with both Docker and Finch and is activated via the --use-buildkit flag with sam build.
Sort: